Click or drag to resize
ISwitchV2 Methods

The ISwitchV2 type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAction
Invokes the specified device-specific action.
Public methodCanWrite
Reports if the specified switch device can be written to, default true. This is false if the device cannot be written to, for example a limit switch or a sensor.
Public methodCommandBlind
Transmits an arbitrary string to the device and does not wait for a response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodCommandBool
Transmits an arbitrary string to the device and waits for a boolean response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodCommandString
Transmits an arbitrary string to the device and waits for a string response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodDispose
Dispose the late-bound interface, if needed. Will release it via COM if it is a COM object, else if native .NET will just dereference it for GC.
Public methodGetSwitch
Return the state of switch device id as a boolean
Public methodGetSwitchDescription
Gets the description of the specified switch device. This is to allow a fuller description of the device to be returned, for example for a tool tip.
Public methodGetSwitchName
Return the name of switch device n.
Public methodGetSwitchValue
Returns the value for switch device id as a double
Public methodMaxSwitchValue
Returns the maximum value for this switch device, this must be greater than MinSwitchValue(Int16).
Public methodMinSwitchValue
Returns the minimum value for this switch device, this must be less than MaxSwitchValue(Int16)
Public methodSetSwitch
Sets a switch controller device to the specified state, true or false.
Public methodSetSwitchName
Set a switch device name to a specified value.
Public methodSetSwitchValue
Set the value for this device as a double.
Public methodSetupDialog
Launches a configuration dialog box for the driver. The call will not return until the user clicks OK or cancel manually.
Public methodSwitchStep
Returns the step size that this device supports (the difference between successive values of the device).
Top
See Also