DCPowerOutputMeasureCompleteEvent.WaitForEvent Method
- Updated2024-01-04
- 2 minute(s) read

DCPowerOutputMeasureCompleteEventWaitForEvent Method
Waits until the specified channel(s) have generated the MeasureCompleteEvent.
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.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023
Syntax
public void WaitForEvent( PrecisionTimeSpan timeout )
Public Sub WaitForEvent ( timeout As PrecisionTimeSpan )
Parameters
- timeout
- Type: NationalInstrumentsPrecisionTimeSpan
Specifies the maximum time allowed for this method to complete, in seconds. If the method does not complete within this time interval, NI-DCPower returns an error.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The method was called after the associated NIDCPower object was disposed. |
SelectorNameException | The method was called with an unknown channel name. |
IviCDriverException | The underlying NI-DCPower driver returned an error. |
Remarks
![]() |
---|
This method must only be called when the specified channel(s) are 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. |