ecfef11.c File Reference

ECFef: Makes ECFiles for Efficiency Runs (2nd Magnet);. 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 ECFef file"
#define GUNTXT   "EFFICIENCY RUN (2nd Magnet)"
#define CMMNT   ffPARFILE.dataEcf.cmmnt
#define POWTYP   ffPARFILE.dataEcf.powtyp
#define CHANS   ffPARFILE.dataEcf.chans
#define LOOPS   ffPARFILE.dataEcf.loops
#define MEASRM   ffPARFILE.dataEcf.measrm
#define MING   ffPARFILE.dataEcf.ming
#define MAXG   ffPARFILE.dataEcf.maxg
#define SWTIME   ffPARFILE.dataEcf.swtime
#define OFFTIME   ffPARFILE.dataEcf.offtime
#define ONTIME   ffPARFILE.dataEcf.ontime
#define OPNLEN   (LOOPS*(14*MEASRM+40)+1000)
#define DACLOW   0x0000
#define DACHIG   0xffff

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

ECFef: Makes ECFiles for Efficiency Runs (2nd Magnet);.

Author:
Kurt Huber; Strahlenzentrum J.L.-Universitaet GIESSEN
Date:
30.03.2000
Version:
17.09.2008
modification history
--------------------
17sep08 kHu	DOXYGEN comments added
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 DACHIG   0xffff

#define DACLOW   0x0000

#define DACLOW   0x0000

#define G2VNUM   5

#define GUNTXT   "EFFICIENCY RUN (2nd Magnet)"

#define LOOPS   ffPARFILE.dataEcf.loops

#define MAGLIMIT   11.0

#define MAXG   ffPARFILE.dataEcf.maxg

#define MEASRM   ffPARFILE.dataEcf.measrm

#define MING   ffPARFILE.dataEcf.ming

#define OFFTIME   ffPARFILE.dataEcf.offtime

#define ONTIME   ffPARFILE.dataEcf.ontime

#define OPNLEN   (LOOPS*(14*MEASRM+40)+1000)

#define POWNUM   3

#define POWTYP   ffPARFILE.dataEcf.powtyp

#define STITLE   " File spezification of ECFef file"

#define SWTIME   ffPARFILE.dataEcf.swtime

#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