Wait For Event With Channels
- Updated2023-02-17
- 3 minute(s) read
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

session in
Instrument session obtained from the Initialize With Independent Channels node.

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

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.

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. |

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.

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

error out
Error information.
The node produces this output according to 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.