SignalSource Property
Syntax
CWIMAQPulse.SignalSource
Data Type
You can use the following constants with this data type:
- cwimaqAcquisitionDone—Asserted at the end of an acquisition when the last piece of data is transferred to memory.
- cwimaqAcquisitionInProgress—Asserted when the device initiates an acquisition either through a software-triggered or hardware-triggered start.
- cwimaqBufferComplete—Asserted when an image is transferred to memory and is available for image processing.
- cwimaqExternalLine—Specifies an assertion on an external signal line as a signal source.
- cwimaqFrameDone—Asserted at the end of the acquisition of each image.
- cwimaqFrameStart—Asserted at the start of the acquisition of each image.
- cwimaqImmediate—Immediately drive a signal line.
- cwimaqIsoInLine—Specifies an assertion on a isolated input line as a signal source.
- cwimaqRTSILine—Specifies an assertion on a RTSI signal line as a signal source.
- cwimaqScaledEncoder—Specifies an assertion of the scaled encoder as a signal source for each line of an acquisition.
Purpose
Signal that triggers the pulse generation.
Example
Private Sub Run_Click()
Dim pulse1 As CWIMAQPulse
Dim signal1 As CWIMAQSignal
' Add a signal
Set signal1 = CWIMAQ1.Signals.Add
' Set the signal object to generate a pulse
' on external line 0.
signal1.Action = cwimaqGeneratePulse
signal1.Line = cwimaqExternal
signal1.LineNumber = 0
' Add a pulse.
Set pulse1 = CWIMAQ1.Pulses.Add
' Set the pulse to have a width of 1 second
' after the initial delay of 1 seconds.
' The pulse is generated immediately after
' RTSI 3 is asserted.
pulse1.Action = cwimaqSingle
pulse1.Delay = 1#
pulse1.Width = 1#
pulse1.SignalSource = cwimaqRTSILine
pulse1.SignalLineNumber = 3
pulse1.SignalPolarity = cwimaqActiveHigh
pulse1.Units = cwimaqPulseUnitSeconds
' Set this pulse1 as the pulse1 that the signal1
' object generates
Set signal1.pulse = pulse1
End Sub