Software Description
ComTec GmbH
5-36
// bit 2: sweep preset enabled
// bit 3: ROI preset enabled
// bit 4: Starts preset enabled
// bit 5: ROI2 preset enabled
// bit 6: ROI3 preset enabled
// bit 7: ROI4 preset enabled
// bit 8: ROI5 preset enabled
// bit 9: ROI6 preset enabled
long cycles;
// for sequential mode
long sequences;
//
long syncout;
// LOWORD: sync out;
// bit 0..5 NIM syncout, bit 8..13 TTL syncout
// bit7: NIM syncout_invert,
// bit15: TTL syncout_invert
//
0="0", 1=10 MHz, 2=78.125 MHz, 3=100 MHz,
//
4=156.25 MHz, 5=200 MHz, 6=312.5 MHz,
//
7=Ch0, 8=Ch1, 9=Ch2, 10=Ch3,
//
11=Ch4, 12=Ch5, 13=GO,
//
14=Start_of_sweep, 15=Armed,
//
16=SYS_ON, 17=WINDOW, 18=HOLD_OFF,
//
19=EOS_DEADTIME
//
20=TIME[0],...,51=TIME[31],
//
52...63=SWEEP[0]..SWEEP[11]
long digio;
// LOWORD: Use of Dig I/O, GO Line:
// bit 0: status dig 0..3
// bit 1: Output digval and
//
increment digval after stop
// bit 2: Invert polarity
// bit 4: Input pins 4 Trigger System
// bit 8: GOWATCH
// bit 9: GO High at Start
// bit 10: GO Low at Stop
// bit 11: Clear at triggered start
// bit 12: Only triggered start
long digval;
// digval=0..255 value for samplechanger
long dac0;
//
DAC0 value (START)
long dac1;
//
DAC1 value (STOP 1)
long dac2;
//
DAC2 value (STOP 2)
long dac3;
//
DAC3 value (STOP 3)
long dac4;
//
DAC4 value (STOP 4)
long dac5;
//
DAC5 value (STOP 5)
// bit (14,15) of each word:
// 0=falling, 1=rising, 2=both, 3=both+CFT
int fdac;
// Feature DAC 0..16383 --> 0..2.5V
int tagbits;
// number of tagbits
int extclk;
// use external clock
long maxchan;
// number of input channels (=6)
long serno;
// serial number
long ddruse;
// bit0: DDR_USE, bit1: DDR_2GB
long active;
// module in system
double holdafter;
// Hold off
double swpreset;
// sweep preset value
double fstchan;
// acquisition delay
double timepreset;
// time preset
} BOARDSETTING;
typedef struct{
unsigned long HUGE *s0;
// pointer to spectrum
unsigned long far *region;
// pointer to regions
unsigned char far *comment0;
// pointer to strings
double far *cnt;
// pointer to counters
HANDLE hs0;
HANDLE hrg;
HANDLE hcm;
HANDLE hct;
} ACQDATA;