Sets the board Acquisition time interval.
GxCntSetAcquisitionTimeInterval (nHandle, dSeconds, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
dSeconds |
DOUBLE |
Acquisition time interval in seconds. Time interval range can be set from 0.8 ms to 3200 seconds. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
When setting the Acquisition mode to Paced mode (see GxCntSetAcquisitionMode function) ensures the acquisition of data at accurately spaced time intervals. In Paced operation, the user specifies the time which should elapse BETWEEN initiations of measurements. Acquisition time are digitally generated are accurate to within 200 s (the errors do not accumulate).
Some care must be used when selecting pacing intervals to ensure consistent timing between measurements. The pacing interval must be at least 1.5 ms longer than the actual gate time in Frequency and Period modes, 1.5 ms longer than the actual measurement interval in timing modes, such as Pulse Width. If these recommendations are not followed, the counter will simply “skip” measurements, and the data will be taken at uneven intervals. If skipping occurs in Acquire mode the function returns an error.
The following example set the Acquisition time interval to 34mSec:
SHORT nHandle, nStatus;
GxCntSetAcquisitionTimeInterval (nHandle, 0.034, &nStatus)
GxCntGetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetAcquisitionMode, GxCntGetErrorString