IMAQ Generate Pulse VI

NI-IMAQ VI

IMAQ Generate Pulse VI

Installed With: NI Vision Acquisition Software

Generates a pulse on a trigger line. IMAQ Generate Pulse can generate a pulse immediately or on the assertion edge of a status or trigger signal. Each trigger pulse uses a Pulse Id, which is automatically generated each time you call this VI.

Note  This VI is deprecated. The replacement VI is IMAQ Generate Pulse3, which incorporates the functionality of IMAQ Generate Pulse and IMAQ Generate Pulse2 and returns additional information.

Details

IMAQ Generate Pulse

cbool.gif

Signal polarity specifies the polarity of the Signal input. TRUE indicates the signal occurs on the rising edge. FALSE indicates the signal occurs on the falling edge. The default is TRUE.

cnclst.gif

Pulse Parameters defines polarity and describes the high and low duration of a pulse in seconds.

cdbl.gif

Pulse Delay (s) is the desired duration of the first phase of the signal in microseconds. If Pulse Delay equals 0, the VI selects a minimum delay of one cycle of the timebase used.

cdbl.gif

Pulse Width (s) is the desired duration of the second phase of the signal in seconds. If Pulse Delay equals 0, the VI selects a minimum delay of one cycle of the timebase used.

cenum.gif

pulse polarity (high:0) is the polarity of second phase (period two) of each delayed pulse.

The following values are valid:

  • High pulse (default)—Pulse starts at a low level and ends at a high level.
  • Low pulse—Pulse starts at a high level and ends at a low level.
crn.gif

IMAQ Session In identifies the device.

ci32.gif

Pulse ID In identifies the Pulse Id input. This parameter is used only when Mode is set to Stop.

cu16.gif

Trigger line specifies the line on which the pulse is generated.

cu16.gif

Signal specifies the pulse initialization signal which causes the pulse to be generated.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code code is the number identifying an error or warning. If status is TRUE, code is a non-zero error code. If status is FALSE, code can be zero or a warning code. Use the error handler VIs to look up the meaning of this code and to display the corresponding error message.

cstr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

cu16.gif

Mode indicates if the pulse is repeated.

The following values are valid:

  • Pulse train—Generates a continuous pulse train on the first assertion edge of Signal.
  • Single pulse—Generates a pulse on the first assertion edge of Signal.
  • Rearmed pulse—Generates a pulse on all assertion edges of Signal.
  • Stop—Stops the generation of pulses.
irn.gif

IMAQ Session Out has the same value as IMAQ Session In.

iu32.gif

Pulse Id Out identifies the Pulse Id output.

ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

Details

Only the NI PCI/PXI-1409, NI PCI-1410, NI PCI/PXI-1422, NI PCI-1424, NI PCI-1426, NI PCI/PXI-1428, NI PCIe-1429, and NI PCIe-1430 can generate pulses.

  • The NI 1409, NI 1410, NI 1422, NI 1424, NI 1426, and NI 1428 can generate a maximum of 2 pulses.
  • The NI 1429 can generate a maximum of 3 pulses.
  • The NI 1430 can generate a maximum of 6 pulses.

These pulse generators can be automatically configured by NI-IMAQ for generating pulses used to control the camera. In these cases, the VI returns the Exhausted Resources error when the total number of pulses is greater than two.