WaitForScanComplete Method
- Updated2023-02-21
- 2 minute(s) read
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
Exception | Condition |
---|---|
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. |