WaitForEvent(NationalInstruments.PrecisionTimeSpan)
- Updated2025-10-06
- 1 minute(s) read
Waits until the device has generated the specified event. The session monitors whether each type of event has occurred at least once since the last time this method or the Initiate method was called. If an event has only been generated once, and you call this method successively, the method times out. Individual events must be generated between separate calls of this method.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public void WaitForEvent(NationalInstruments.PrecisionTimeSpan timeout)
Remarks
This method must only be called in the Running state. For more information about the specific NI-DCPower software states, refer to the Programming States topic in the NI DC Power Supplies and SMUs Help.
Parameters
| Name | Type | Description |
|---|---|---|
| timeout | NationalInstruments.PrecisionTimeSpan | Specifies the maximum time allowed for this function to complete, in seconds. If the function does not complete within this time interval, NI-DCPower returns an error. |