AIOLineChangedEventHandler Delegate |
When the status of 1 or more Analog IO lines change on a device within a polling internal be notified of the lines for which there is a change:
TYPES OF EVENT:
DELTA: When the line has changed more than the specified delta since the previous sampled value
TARGET: When the line has changed to go above or below the specified target since the previous sampled value
TARGET RANGE: When the line has changed to either enter the delta range of the target value or exit the delta
range of the target value since the previous sampled value
Namespace: Brainboxes.IOAssembly: Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public delegate void AIOLineChangedEventHandler(
IOLine line,
EDDevice device,
double value,
AIOChangeTypes changeType
)
Public Delegate Sub AIOLineChangedEventHandler (
line As IOLine,
device As EDDevice,
value As Double,
changeType As AIOChangeTypes
)
type AIOLineChangedEventHandler =
delegate of
line : IOLine *
device : EDDevice *
value : float *
changeType : AIOChangeTypes -> unit
Parameters
- line IOLine
- device EDDevice
- value Double
- changeType AIOChangeTypes
- The type of change that occurred to cause this event to be fired
Delta event: Only Delta = 0 returned
Target event: Above = 2 if the previous sampled value was below and the current sampled value goes above the specified target value
Below = 1 if the previous sampled value was above and the current sampled value goes below the specified target value
Target Range event: Enter = 3 if the previous sampled value was outside of the delta range of the target value and the current sampled
value goes inside the delta range of the target value
Exit = 4 if the previous sampled value was inside of the delta range of the target value and the current sampled
value goes outside the delta range of the target value
See Also