#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] |
modification history -------------------- 17sep08 kHu DOXYGEN comments added 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 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 |
| 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.}
1.5.6