#include "vxWorks.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "math.h"
#include "application.conf"
Defines | |
| #define | POWNUM 5 |
| #define | VLT2DAC 6553.6 |
| #define | DACLOW 0x0000 |
| #define | DACHIG 0xffff |
| #define | G2VNUM 5 |
| #define | MAGLIMIT1 11.0 |
| #define | MAGLIMIT2 13.0 |
| #define | MAGWARN "Warning: magnet may overheat!!!" |
| #define | STITLE " File spezification of ECFm1 file" |
| #define | GUNTXT "MASS SPECTRUM (1st 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 08aug02 kHu MAGLIMIT -> MAGLIMIT1, MAGLIMIT2, MAGWARN 18may02 kHu auf ECF1 Standard geaendert 29jan02 kHu new power supply (5.) 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 "MASS SPECTRUM (1st Magnet)" |
| #define MAGLIMIT1 11.0 |
| #define MAGLIMIT2 13.0 |
| #define MAGWARN "Warning: magnet may overheat!!!" |
| #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 5 |
| #define POWTYP ffPARFILE.dataEcf.powtyp |
| #define RSTIME ffPARFILE.dataEcf.rstime |
| #define STITLE " File spezification of ECFm1 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:
{
{.10025, .50543, -.04031, .88e-3, .21e-3},
{.04108, .87119, .04429, -.00836, .523878e-3},
{.13108, .58511, -.02084, .349421e-3, .106917e-3},
{-.756378e-2, .435103, .893998e-2, -.251812e-2, .19396e-3},
{-0.01744, 0.83335, 0.02762, -0.00567, 3.8368E-4}
}
float lowlim[POWNUM] [static] |
Initial value:
{0., 0., 0., 0., 0.}
float upplim[POWNUM] [static] |
Initial value:
{10., 10., 10., 10., 10.}
1.5.6