Reset Method

NI Vision for Visual Basic

Reset Method

Syntax

CWIMAQ.Reset

Return Type

Long

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 and resets any internally configured resources to their default values.

Remarks

Call this method to reset the currently configured session and release all hardware resources. If you need to stop the acquisition without resetting the current session or releasing resources, call the Stop method.

Example

' This example requires you to have a button named Reset on the form.
Private Sub Reset_Click()
    ' Reset the CWIMAQ control
    CWIMAQ1.Reset
End Sub

See Also

Start

Stop