Stop Method
Syntax
CWIMAQ.Stop
Return Type
This method returns 0 on success, a negative number on an error, and a positive number on a warning.
Purpose
Stops an acquisition in progress.
Remarks
Call this method only after starting a continuous acquisition or an acquisition that uses triggering. When this method stops an acquisition, you can restart the acquisition with the Start method.
This method does not reset the currently configured session and release all hardware resources. Use the Reset method to reset the currently configured session and release all hardware resources.
Example
' This example requires you to have the following controls on the form: ' 1) A button named Acquire. ' 2) A button named Stop. ' 3) A Textbox named Text1 Private Sub Acquire_Click() ' Attach the viewer to the first item of the Images ' collection CWIMAQViewer1.Attach CWIMAQ1.Images.Item(1) ' Make the acquisition continuous. CWIMAQ1.AcquisitionType = cwimaqAcquisitionContinuous ' Start the acquisition CWIMAQ1.Start End Sub Private Sub Stop_Click() ' Stop the acquisition CWIMAQ1.Stop End Sub Private Sub CWIMAQ1_AcquiredImage(ImageIndex As Variant) ' Display the ImageIndex in the text box. Text1 = ImageIndex End Sub