niDCPower Wait For Event With Channels VI
- Updated2025-10-06
- 3 minute(s) read
Waits until the specified channel(s) have generated the specified event.
The session monitors whether each type of event has occurred at least once for the specified channel(s) since the last time this VI or the niDCPower Initiate With Channels VI were called. If an event has only been generated once and you call this VI successively, the VI times out. Individual events must be generated between separate calls of this VI.
Related topics:

Inputs/Outputs
timeout (10.0)
—
timeout (10.0) specifies the maximum time allowed for this VI to complete, in seconds. If the VI does not complete within this time interval, NI-DCPower returns an error. Note When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application.
instrument handle
—
instrument handle identifies a particular instrument session.
channel name
—
channel name specifies the channel(s) to use. 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. If you do not wire this parameter, all channels in the session are used.
event
—
event specifies which event to wait for.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
instrument handle out
—
instrument handle out passes the handle used to identify the session in all subsequent NI-DCPower VI calls.
error out
—
error out contains error information. This output provides standard error out functionality. |
timeout (10.0)
—
instrument handle
—
channel name
—
event
—
error in (no error)
—
instrument handle out
—
error out
—