Wait For Event With Channels

Waits until the specified channels have generated the specified event.

The session monitors whether each type of event has occurred at least once for the specified channels since the last time this node or the Initiate With Channels node were called. If an event has only been generated once and you call this node successively, the node times out. Individual events must be generated between separate calls of this node.

Inputs/Outputs

datatype_icon

session in

Instrument session obtained from the Initialize With Independent Channels node.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

channel name

Channel(s) to use.

If you do not wire this parameter, by default all channels in the session are used.

Channel Name Syntax

Specify the channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are instrument resource names and 0, 2, and 3 are channels.

datatype_icon

event

Event to wait for.

Source Complete Event 1030 Waits for the Source Complete event.
Measure Complete Event 1031 Waits for the Measure Complete event.
Sequence Iteration Complete Event 1032 Waits for the Sequence Iteration Complete event.
Sequence Engine Done Event 1033 Waits for the Sequence Engine Done event.
Pulse Complete Event 1051 Waits for the Pulse Complete event.
Ready for Pulse Trigger Event 1052 Waits for the Ready for Pulse Trigger event.
datatype_icon

timeout (s)

Maximum time allowed for this node to complete, in seconds.

If the node does not complete within this time interval, NI-DCPower returns an error.

Note When setting the timeout interval, take into account any triggers to ensure that the timeout interval is long enough for your application.
datatype_icon

session out

Handle used to identify the session in all subsequent NI-DCPower node calls.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Hardware Support

This node provides limited support for the following devices:

  • PXI-4110 (Source Complete event only)
  • PXI-4130 (Source Complete event only)

Programming Patterns

This node should only be called when the specified channels are in the Running state.