User manual

2.3.95 AcqrsD1_stopAcquisition
Purpose
Stops the acquisition.
Parameters
Input
Name Type Description
instrumentID ViSession Instrument identifier
Return Value
Name Type Description
status ViStatus Refer to Table 2-1 for error codes.
Discussion
This function will stop the acquisition and not return until this has been accomplished. The data is not
guaranteed to be valid. To obtain valid data after "manually" stopping the acquisition (e.g. timeout waiting
for a trigger), one should use the
AcqrsD1_forceTrig function to generate a "software" (or "manual")
trigger, and then continue polling for the end of the acquisition with
AcqrsD1_acqDone. This will ensure
correct completion of the acquisition.
LabWindowsCVI/Visual C++ Representation
ViStatus status = AcqrsD1_stopAcquisition(ViSession instrumentID);
LabVIEW Representation
Acqiris Dx.lvlib: (or Aq Dx) Stop Acquisition.vi
Visual Basic Representation
StopAcquisition (ByVal instrumentID As Long) As Long
Visual Basic .NET Representation
AcqrsD1_stopAcquisition (ByVal instrumentID As Int32) As Int32
MATLAB MEX Representation
[status] = AqD1_stopAcquisition(instrumentID)
Note: The older form Aq_stopAcquisition is deprecated.
Please convert to the newer version.
Programmer’s Reference Manual Page 182 of 210