Click or drag to resize

IOLine Class

An IOLine on a Brainboxes Remote IO Device
Inheritance Hierarchy
SystemObject
  Brainboxes.IOIOLine

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
public class IOLine

The IOLine type exposes the following members.

Properties
  NameDescription
Public propertyAValue
The Value that the Analog Input or Output is at
Public propertyCount
Get the count of the input, that is the number of times the input has latched since the counter has been reset
Public propertyHighLatchedStatus
Whether this IOLine has had its High Latch set since the last latch reset
Public propertyLabel
User definable label for the io line to help when debugging
Public propertyLowLatchedStatus
Whether this IOLine has had its Low Latch set since the last latch reset
Public propertyMostRecentChangeType
The most recent type of change to occur to the IOLine examples: a. if the previous value seen was 1 and the current value is 0 then the change type will be IOChangeType.FallingEdge. b. if the device has just been turned on then the change type will be IOChangeType.Undefined c. if the line has gone from 1 to 0 and back to 1 within the IOLineCacheTimeout the change type will be IOChangeType.Latched d. if the line has not changed within the last IOLineCacheTimeout the change type will be IOChangeType.NoChange The method will only return meaningful results if there are event handlers attached to the EDDevice
Public propertyValue
Whether the line is: Digital Input : HIGH (1) or LOW(0) Output/Relay : CLOSED (1) or OPEN (0) NOTE: only Outputs can be set, inputs will throw InvalidOperationException
Top
Methods
  NameDescription
Public methodClearCount
Clear the count currently recorded on the line
Public methodDescribe
Give a complete summary of the IOLine
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodSubscribeToDeltaEvent
Register an event with this handler to be notified when the state of this AIOLine changes over the delta value specified
Public methodSubscribeToTargetEvents
Register an event with this handler to be notified when the state of this AIOLine goes over the value specified and below the value specified
Public methodSubscribeToTargetRangeEvents
Register an event with this handler to be notified when the state of this AIOLine changes more than the specified delta value away from the specified target value
Public methodToggle
If the line is an output this function will invert the state of the line e.g. if the line was closed (1) it will become open (0) or if the line was open (0) it will become closed (1) only valid for Digital outputs
Public methodToString
ToString
(Overrides ObjectToString.)
Public methodUnsubscribeToDeltaEvent
Unsubscribe a registered delta event with this handler to stop being notified when this event is triggered
Public methodUnsubscribeToTargetEvents
Unsubscribe a registered target event with this handler to stop being notified when this event is triggered
Public methodUnsubscribeToTargetRangeEvents
Unsubscribe a registered target range event with this handler to stop being notified when this event is triggered
Top
Events
  NameDescription
Public eventIOLineChanged
register an event for this IOLine
Public eventIOLineCount
register a count event for this IOLine
Public eventIOLineFallingEdge
register a rising edge event for this IOLine
Public eventIOLineRisingEdge
register a rising edge event for this IOLine
Top
Fields
  NameDescription
Public fieldIODirection
Whether the IO line is an input or an output
Public fieldIONumber
The IO Number from 0 to 15 e.g DOUT2, DIN1, Relay3
Public fieldIOType
Whether the line is digital or analog
Public fieldLogicalNumber
The IO Line Number from 0 to 15 as defined on the case
Top
See Also