WaitForEvent(NationalInstruments.PrecisionTimeSpan)
- Updated2025-10-06
- 1 minute(s) read
Waits until the specified channel(s) have generated the PulseCompleteEvent. The session monitors whether each type of event has occurred at least once for the specified channel(s) 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 when the specified channel(s) are in the Running state. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for information about the specific NI-DCPower software states.
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. |