#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] |
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 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 |
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 | ) |
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.}