WaitMatch¶
-
void ISignal.WaitMatch(DoubleCondition condition, double timeout)¶
Waits until the signal matches the specified condition, or the timeout interval is exceeded.
- Parameters
condition – DoubleCondition to wait for.
timeout – Interval in seconds to wait for condition. Negative value means infinite.
- Throws
InvalidArgumentException– Invalid condition (e.g. invalid operator) or invalid timeout (NaN).UnsupportedException– Condition type not supported for this signal (signal data type must be SignalDataType.Double or SignalDataType.Float).UnsupportedException– Signal doesn’t support match functionality (see product specific documentation).InvalidOperationException– Top-controller state is not “Run”.OutOfResourcesException– No resources available to wait for condition.TimeoutException– Timeout interval exceeded while waiting for condition.CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.System.ObjectDisposedException– Object is disposed.
- Remarks
Execution requires one subscription resource.