NI-DCPower .NET fx40 API Reference

Table of Contents

DCPowerOutputMeasureCompleteEvent.WaitForEvent Method

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

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

ExceptionCondition
ObjectDisposedExceptionThe method was called after the associated NIDCPower object was disposed.
SelectorNameExceptionThe method was called with an unknown channel name.
IviCDriverExceptionThe underlying NI-DCPower driver returned an error.

Remarks

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

See Also

Log in to get a better experience