Line Property

NI Vision for Visual Basic

Line Property

Syntax

CWIMAQSignal.Line

Data Type

CWIMAQSignalLines

You can use the following constants with this data type:

  • cwimaqExternal—External signal line.
  • cwimaqIsoIn—Isolated input signal line.
  • cwimaqIsoOut—Isolated output signal line.
  • cwimaqRTSI—RTSI signal line.
  • cwimaqScaledEncoder—Scaled encoder signal line.
  • cwimaqStatus—Status signal line.

Purpose

Type of signal line.

Remarks

Set this property to one of the following options

  • cwimaqRTSI to use the RTSI bus.
  • cwimaqExternal to use an external trigger line
  • cwimaqIsoIn to use an isolated input line
  • cwimaqIsoOut to use an isolated output line
  • Example

    Private Sub Run_Click()
        Dim signal As CWIMAQSignal
        ' Add a signal
        Set signal = CWIMAQ1.Signals.Add
        
        ' Set the signal to capture every line
        ' after first three triggers on RTSI 0.
        signal.Action = cwimaqCaptureEveryLine
        signal.Line = cwimaqRTSI
        signal.Polarity = cwimaqActiveHigh
        signal.LineNumber = 0
        signal.SkipTrigger = 3
    End Sub

    See Also

    LineNumber