User manual

2.3.97 AcqrsD1_waitForEndOfAcquisition
Purpose
Waits for the end of acquisition.
Parameters
Input
Name Type Description
instrumentID ViSession Instrument identifier
timeout ViInt32 Timeout in milliseconds
Return Value
Name Type Description
status ViStatus Refer to Table 2-1 for error codes.
Discussion
This function will return only after the acquisition has terminated or when the requested timeout has
elapsed, whichever comes first. For protection, the timeout is clipped to a maximum value of 10 seconds. If
a larger timeout is needed, call this function repeatedly.
While waiting for the acquisition to terminate, the calling thread is put into 'idle', permitting other threads or
processes to fully use the CPU.
If a channel or trigger overload was detected, the returned status is always
ACQIRIS_ERROR_OVERLOAD. Else, if the acquisition times out, the returned status is
ACQIRIS_ERROR_ACQ_TIMEOUT, in which case you should use either AcqrsD1_stopAcquisition or
AcqrsD1_forceTrig to stop the acquisition. Otherwise, the returned status is VI_SUCCESS.
Programmer’s Reference Manual Page 184 of 210