User manual

Programmer’s Guide Page 23 of 64
long channel = 1, gate =2;
AcqrsD1_configAvgConfig(instrID, channel, "GateType", &gate);
long preSamples = 0, postSamples = 0, maxGates = 1;
double threshold = 0.0; // in Volts
status = AcqrsD1_configAvgConfig(instrID, channel,
"PreSamples", &preSamples);
status = AcqrsD1_configAvgConfig(instrID, channel,
"PostSamples", &postSamples);
status = AcqrsD1_configAvgConfig(instrID, channel,
"Threshold", &threshold);
status = AcqrsD1_configAvgConfig(instrID, channel,
"NbrMaxGates", &maxGates);
3.5.3. SSR Time stamps
The ‘On-board’ 10 MHz reference clock is used to increment a counter. The value of the counter is stored after the
trigger of each new segment. The value of the counter can be read by the software as shown here:
double SSRtimeStamp;
Acqrs_getInstrumentInfo(
instrID, "SSRTimeStamp", &SSRtimeStamp);
Since each channel is controlled by its own FPGA the time stamps for the same segment are not necessarily the same
for the two channels. The command above works with the stamp of Channel 2.
In this release if the function is called before the first acquisition has been started the value returned will be 0!
It is possible to reset the time stamp when starting an acquisition using a call like
status = AcqrsD1_acquireEx(instrID,0,4,0,0);
or with a hardware signal on the P1 or P2 connectors. This can be done with a call like:
Long TSReset = 1;
status = AcqrsD1_configAvgConfig(instrID, channel, "P1Control",&TSReset);
3.6. U1084 Zero-Suppression mode
3.6.1. U1084A Zero-Suppression mode Acquisition Parameters
The U1084A has two modes of operation, Normal and Zero-Suppress, controlled with the function:
AcqrsD1_configMode(instrID, mode, 0, flag);
The value mode can be set to 0 (Normal) or 7 (Zero-Suppress). The flag value 10 enables SAR mode, and is the only
valid flag value for this mode.
The Zero-Suppress mode requires a number of additional configuration parameters that describe the requested
acquisition and readout conditions.
Use the following short code fragment to configure a buffered acquisition sequence of 800 waveforms of 4096 data
points, with a pre-sample of 128 samples:
// Common Configure
ViInt32 nbrSamples = 4096, nbrSegments = 800;
ViInt32 InvertData = 0;
ViInt32 PreSamples = 128, PostSamples = 0;
AcqrsD1_configMode(
instrID, 7, 0, 10);
AcqrsD1_configAvgConfigInt32(
instrID, 0, "NbrSamples", &nbrSamples);
AcqrsD1_configAvgConfigInt32(instrID, 0, "NbrSegments", &nbrSegments);
AcqrsD1_configAvgConfigInt32(
instrID, 0, "PreSamples", &PreSamples);
AcqrsD1_configAvgConfigInt32(
instrID, 0, "PostSamples", &PostSamples);
AcqrsD1_configAvgConfigInt32(instrID, 0, "InvertData", &InvertData);