NI-RFPM API Reference

Table of Contents

RfpmMeasurements.WaitUntilDone Method

  • Updated2023-12-28
  • 1 minute(s) read
RfpmMeasurements.WaitUntilDone Method

RfpmMeasurementsWaitUntilDone Method

Waits for the measurement to complete after calling the Initiate(String, String) method. If the measurement does not complete within the specified timeout, this method throws an exception.

Namespace:  NationalInstruments.ModularInstruments.NIRfpm
Assembly:  NationalInstruments.ModularInstruments.NIRfpm.Fx40 (in NationalInstruments.ModularInstruments.NIRfpm.Fx40.dll) Version: 2023

Syntax

public void WaitUntilDone(
	TimeSpan maxTime
)
Public Sub WaitUntilDone ( 
	maxTime As TimeSpan
)

Parameters

maxTime
Type: SystemTimeSpan
The amount of time to wait before throwing an exception, if the measurement is not complete.

Exceptions

ExceptionCondition
ObjectDisposedExceptionWaitUntilDone(TimeSpan) was called after the associated NIRfpm or RfpmDriverUtility object was disposed.
ArgumentException The value for maxTime is invalid.
MaxTimeExceededException The operation initiated by Initiate(String, String) did not complete within the specified maxTime period.
IviCDriverException The underlying NI-RFPM driver returned an error.

Remarks

You must call Initiate(String, String) first and then wait.

See Also

Log in to get a better experience