Initialize Method

NI Vision for Visual Basic

Initialize Method

Syntax

CWIMAQSignal.Initialize Line, Action, Polarity, LineNumber [, SkipTrigger]

Purpose

Configures a signal object.

Remarks

Use this method to set several signal properties simultaneously.

Parameters

Line As CWIMAQSignalLines

The line type.

Action As CWIMAQSignalActions

The signal action.

Polarity As CWIMAQSignalPolarities

The polarity of the signal.

LineNumber As Variant

The line number of the specific line type.

SkipTrigger As Variant

[Optional] The number of triggers to skip before capturing a line.

Example

Private Sub Run_Click()
    ' Add a signal and set the signal to capture every image
    ' after first three triggers on RTSI 0.
    CWIMAQ1.Signals.Add.Initialize cwimaqRTSI, _
                                   cwimaqCaptureEveryImage, _
                                   cwimaqActiveHigh, _
                                   0, _
                                   3
End Sub