WaitMatch¶
-
void ISignal.WaitMatch(Uint32Condition condition, double timeout)¶
Waits until the signal matches the specified condition, or the timeout interval is exceeded.
- Parameters
condition – Uint32Condition to wait for.
timeout – Interval in seconds to wait for condition. Negative value means infinite.
- Throws
InvalidArgumentException
– Invalid condition (e.g. mask is zero) or invalid timeout (NaN).UnsupportedException
– Condition type not supported for this signal (signal data type must be SignalDataType.Uint32, SignalDataType.Enum, SignalDataType.Mask, SignalDataType.Bool, SignalDataType.Uint8, SignalDataType.Int8, SignalDataType.Uint16, SignalDataType.Int16 or SignalDataType.Int32).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.