Pulses Property (Read Only)

NI Vision for Visual Basic

Pulses Property (Read Only)

Syntax

CWIMAQ.Pulses

Data Type

CWIMAQPulses

Purpose

Collection of CWIMAQPulse objects that describe a pulse your image acquisition device generates on a signal I/O line.

Remarks

You can associate objects from the Pulses collection with a CWIMAQSignal object in the Signals collection to describe the type of pulse that your image acquisition device generates on the signal line associated with the pulse.

Example

Private Sub Run_Click()
    'Add an object to the signals collection
    CWIMAQ1.Signals.Add.Name = "EXT0"
    
    'Set external line 0 to generate a pulse
    CWIMAQ1.Signals("EXT0").Set cwimaqExternal, cwimaqGeneratePulse, _
                                cwimaqActiveHigh, 0
    
    'Add an object to the Pulses collection
    CWIMAQ1.Pulses.Add.Name = "TRAIN0"
    
    'Configure the object for the desired pulse
    CWIMAQ1.Pulses("TRAIN0").Set 1.25, 1.25, cwimaqTrain, _
                                 cwimaqActiveHigh, cwimaqImmediate
    
    'Associate the pulse object with the signal line object
    CWIMAQ1.Signals("EXT0").SetPulse CWIMAQ1.Pulses("TRAIN0")
End Sub

See Also

CWIMAQPulse

CWIMAQSignals

CWIMAQSignal