ecfm211.c File Reference

ECFm2: Makes 2nd Magnet-Sweep ECFiles (signal spectrum);. More...

#include "vxWorks.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "math.h"
#include "application.conf"

Defines

#define POWNUM   3
#define VLT2DAC   6553.6
#define DACLOW   0x0000
#define DACHIG   0xffff
#define G2VNUM   5
#define MAGLIMIT   11.0
#define STITLE   " File spezification of ECFm2 file"
#define GUNTXT   "SIGNAL SPECTRUM (2nd magnet)"
#define CMMNT   ffPARFILE.dataEcf.cmmnt
#define POWTYP   ffPARFILE.dataEcf.powtyp
#define CHANS   ffPARFILE.dataEcf.chans
#define MING   ffPARFILE.dataEcf.ming
#define MAXG   ffPARFILE.dataEcf.maxg
#define STTIME   ffPARFILE.dataEcf.sttime
#define OFFTIME   ffPARFILE.dataEcf.offtime
#define ONTIME   ffPARFILE.dataEcf.ontime
#define RSTIME   ffPARFILE.dataEcf.rstime
#define OPNLEN   (2*CHANS*(2*3+1)+1000)

Functions

static long gss2dac (int powsup, float gauss)
static float dac2gss (int powsup, long dacuni)
static float daconv (int powsup, float gauss)
int MakeECF (void)

Variables

static float g2vpar [POWNUM][G2VNUM]
static float lowlim [POWNUM]
static float upplim [POWNUM]


Detailed Description

ECFm2: Makes 2nd Magnet-Sweep ECFiles (signal spectrum);.

Author:
Kurt Huber; Strahlenzentrum J.L.-Universitaet GIESSEN
Date:
30.03.2000
Version:
17.09.2008
modification history
--------------------
17sep08 kHu	DOXYGEN comments added
18may02 kHu	auf ECF1 Standard geaendert
29jan02 kHu	new power supply (3.)
08jan01 kHu	tReadp() -> tMenu
30mar00 kHu	new from ECF

Define Documentation

#define CHANS   ffPARFILE.dataEcf.chans

#define CMMNT   ffPARFILE.dataEcf.cmmnt

#define DACHIG   0xffff

#define DACLOW   0x0000

#define G2VNUM   5

#define GUNTXT   "SIGNAL SPECTRUM (2nd magnet)"

#define MAGLIMIT   11.0

#define MAXG   ffPARFILE.dataEcf.maxg

#define MING   ffPARFILE.dataEcf.ming

#define OFFTIME   ffPARFILE.dataEcf.offtime

#define ONTIME   ffPARFILE.dataEcf.ontime

#define OPNLEN   (2*CHANS*(2*3+1)+1000)

#define POWNUM   3

#define POWTYP   ffPARFILE.dataEcf.powtyp

#define RSTIME   ffPARFILE.dataEcf.rstime

#define STITLE   " File spezification of ECFm2 file"

#define STTIME   ffPARFILE.dataEcf.sttime

#define VLT2DAC   6553.6


Function Documentation

static float dac2gss ( int  powsup,
long  dacuni 
) [static]

static float daconv ( int  powsup,
float  gauss 
) [static]

static long gss2dac ( int  powsup,
float  gauss 
) [static]

int MakeECF ( void   ) 


Variable Documentation

float g2vpar[POWNUM][G2VNUM] [static]

Initial value:

 {
        
        {.102e-2, .44567, .0376, -.667e-2, .391567e-3},
        
        {-.02556, .57196, .05608, -.949e-2, .54621e-3},
        
        
        
        {-0.03981, 1.03784, 0.0087, -0.00262, 2.57453e-4}
    }

float lowlim[POWNUM] [static]

Initial value:

 
        
        {0., 0., 0.}

float upplim[POWNUM] [static]

Initial value:

 
        
        {10., 10., 10.}


Generated on Wed Oct 15 16:17:17 2008 for Experiment-Software by  doxygen 1.5.6