imaqIOPulseCreate Method

NI-IMAQ I/O Visual Basic

imaqIOPulseCreate Method

Syntax

imaqIOPulseCreate id, delayTimebase, delay, widthTimebase, width, triggerSignalType, triggerSignalNumber, triggerSignalPolarity, outputSignalType, outputSignalNumber, outputSignalPolarity, pulseMode, pulseID

Purpose

Configures one of the six pulse generators for the NI-IMAQ I/O device. Refer to your hardware documentation for more information about connecting and configuring the pulse generators.

Parameters

id As IMAQIO_SESSION

The ID of the session to create a pulse on.

delayTimebase As IMAQIOTimebase

The timebase of the pulse delay.

delay As Long

The pulse delay.

widthTimebase As IMAQIOTimebase

The timebase of the pulse width.

width As Long

The width of the pulse.

triggerSignalType As IMAQIOSignalType

The type of signal to trigger on.

triggerSignalNumber As Long

The line number of the signal to trigger on. If you set triggerSignalType to IMAQIO_SIGNAL_STATUS, use IMAQIO_STATUS_SIGNAL_NONE.

triggerSignalPolarity As IMAQIOPolarity

The polarity of the trigger.

outputSignalType As IMAQIOSignalType

The type of signal to create a pulse on.

outputSignalNumber As Long

The line number of the signal to create the pulse on.

outputSignalPolarity As IMAQIOPolarity

The polarity of the pulse output.

pulseMode As IMAQIOPulseMode

The value that indicates if the pulse is generated once or continuously.

pulseID As IMAQIO_PULSE_ID

(Output Parameter) The variable to hold the pulse ID. If the method succeeds, the variable is populated with a valid PULSE_ID that you can use in subsequent methods.

Return Value

This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorTextVB.

 


See Also

imaqIOPulseDispose

imaqIOPulseStart

imaqIOPulseStop