NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

WaitForScanComplete Method

  • Updated2023-02-21
  • 2 minute(s) read
WaitForScanComplete Method
Pauses until the switch stops scanning or until the maximum time has elapsed, when NI-SWITCH returns a timeout error.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Visual Basic (Declaration)
Public Sub WaitForScanComplete ( _
	maximumTime As PrecisionTimeSpan _
)
C#
public void WaitForScanComplete(
	PrecisionTimeSpan maximumTime
)

Parameters

maximumTime
Specifies the maximum length of time to wait for the switch module to stop scanning. If the specified time elapses before the scan ends, a MaxTimeExceededException is returned. The default value is 5000 ms.

Exceptions

ExceptionCondition
Ivi.Driver.MaxTimeExceededException The operation implemented by the method did not complete within the maximum time allowed.
ObjectDisposedException The WaitForScanComplete method was accessed after the associated NISwitch.NISwitch object was disposed.

See Also

Log in to get a better experience