Configure Method

NI Vision for Visual Basic

Configure Method

Syntax

CWIMAQ.Configure

Return Type

Long

This method returns 0 on success, a negative number on an error, and a positive number on a warning.

Purpose

Configures the channel and device of the current interface for an acquisition.

Remarks

Call this method to program the board with the current settings of the CWIMAQ control. The AcquireImage and Start methods call Configure automatically if you do not call Configure first.

Example

Private Sub Run_Click()
    'Select a new interface
    CWIMAQ1.Interface = "img1"

    'Load the current settings
    CWIMAQ1.LoadInterfaceDefaults

    'Set properties
    CWIMAQ1.ROIHeight = 400

    ' Configure the acquisition
    CWIMAQ1.Configure
End Sub