Download Digitizers User Manual
Transcript
• nbrSamples and nbrSegments of the function AcqrsD1_configMemory are replaced by “NbrSamples” and “NbrSegments” in the function AcqrsD1_configAvgConfig. • The values nbrSamples, startDelay and stopDelay must be integer multiples of the ‘block size’, which is always 16 in the AP240/AP235 Dual-channel mode, and 32 AP240/AP235 Singlechannel mode. If the supplied value is not an integer multiple of the ‘averaging block size’, it is truncated to the next lower integer multiple. Thus, nbrSamples = 250 will be truncated to 240 (15 * 16) for a Dual-channel acquisition, and to 224 (7 * 32) for a Single-channel acquisition. You can query the actual value with the function AcqrsD1_getAvgConfig. • The value startDelay controls the time between the trigger and when the first digitized data sample is stored. It should also be noted that when startDelay is 0, the first few data points, 5 in the case of Dual-channel mode and 10 in the Single-channel mode, will always be 0. • The stopDelay permits the addition of an extra delay to the dead time between the acquisition of subsequent waveforms. Its minimum value may be zero. • Although not shown here, a call to AcqrsD1_configControlIO can be made in order to set a trigger veto time to be respected after the receipt of a Prepare for Trigger signal on a Control I/O connector. This feature is for AP101/AP201 analyzers only. • Also not shown, is a call to the function AcqrsD1_configAvgConfig to set a timeout value for the automatic completion of a segment in case the real trigger never arrives. This feature is for AP101/AP201 analyzers only. 3.5.2. Readout configuration There are three possible ways of reading the data when in the SSR mode: raw data, user gates, and threshold gates. In all three cases the entire acquisition must be read; you cannot ask for fewer segments or points. These setting are also controlled through the AcqrsD1_configAvgConfig routine and therefore must be prepared before the acquisition is started. They can be set independently for each channel if desired. For raw data readout you should set long channel = 1, gate = 0; AcqrsD1_configAvgConfig(instrumentID, channel, “GateType”, &gate); For user gate readout you have to define the groups of data samples that you want to read for each segment. If needed new values for the gates can be defined during the acquisition process. They will become effective after the next call to AcqrsD1_processData or AcqrsD1_acquire. Here is some sample code: long g_gateLengthSum[3]; long g_lastGate[3]; long channel = 1, gate =1; AcqrsD1_configAvgConfig(instrumentID, channel, “GateType”, &gate); // you can define up to 4095 gates, // GatePos and GateLength must both be multiples of 4 AqGateParameters configSetupData[100]; long configObj = SSR_Default; long gateSize = 1000; // this will be the size we want to read g_gateLengthSum[channel] = 0; g_lastGate[channel] = 1; // a very simple example Programmer’s Guide Page 28 of 100