SubscribeMatch¶
-
ISubscription ISignal.SubscribeMatch(DoubleCondition condition, SignalMatchHandler<double> handler)¶
Subscribes a callback to be executed when the signal matches the specified condition.
- Parameters
condition – DoubleCondition specifying when callback is to be executed.
handler – Delegate to be invoked when match occurs.
- Returns
ISubscription – An ISubscription for the callback.
- Throws
NullArgumentException
– Null reference was passed.InvalidArgumentException
– Invalid condition (e.g. invalid operator).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 subscribe callback.CommunicationErrorException
– Protocol error.ConnectionLostException
– Connection to controller lost.RebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.