User manual
Windows Server Program
ComTec GmbH 5-33
long active; // Spectrum definition word:
// active & 0xFF ==0 not used
// ==1 single
// ==2 coinc with any
// ==3 MAP,
// ((x-xoffs)>>xsh) x ((y-yoffs)>>ysh)
// ==4 POS, (y<<xsh) /(x + y)
// bit 4..7 in group 1..4
// bit 8..11 xsh, bit 12..15 ysh
double roipreset; // ROI preset value
double ltpreset; // livetime preset value
} ACQSETTING;
typedef struct{
unsigned long HUGE *s0; // pointer to spectrum
unsigned long *region; // pointer to regions
unsigned char *comment0; // pointer to strings
double *cnt; // pointer to counters
HANDLE hs0;
HANDLE hrg;
HANDLE hcm;
HANDLE hct;
} ACQDATA;
typedef struct {
int sen; // Start Enable Register
int coi; // Coincidence Control Register
int ctm; // Coinc. Time in units of 50 ns
int dtm; // Data Ready Timeout
int tct; // Time Stamp Control Register
int tp0; // Timer Preset 0 Register
int tp1; // Timer Preset 1 Register
int tp2; // Timer Preset 2 Register
int aui; // Aux In Control
int auo; // Aux Out Control
int bk0; // Block Routing Control 0
int bk1; // Block Routing Control 1
int dac; // bit 0..7: DAC output value (8 bit)
int diguse; // Usage of DIG I/O
// bit 0: DIG I/O bit 7 output status
// bit 1: Invert Polarity
// bit 2: Input bit 6 Trigger System
// bit 6: Output digval and incr. after stop
// bit 7: Input Mode: =0 Resistive, =1 Tristate
// bit 8: Input Mode: =0 Pullup, =1 Pulldown
int digval ; // DIG I/O Output value
int rtprena; // Realtime Preset enable
double rtpreset; // Realtime Preset
} ACQMP3;
typedef struct {
int nDevices; // Number of connected ADC Interfaces = max. 16
int nDisplays; // Number of histograms = nDevices + Calc + Maps
int nSystems; // Number of independent systems = 1
int bRemote; // 1 if server controlled by MPANT
int auxsys; // System definition words for AUXx
// active & 0xFF ==0 not used
// ==2 coinc with any
// bit 4..7 in group 1..4
int sys0[16]; // System definition words for ADC1..16:
// bit 0 ADC active
// bit 1 =1 ADC coinc, =0 single
// bit 2..4 ADC in system1..7
int sys1[16]; // ADC in System, now always=1
} ACQDEF;