WERMA SIGNALTECHNIK Version 1.2.0 - 0911 16
6.3.2 Basic Functions
6.3.2.1 SetUsbDevice
int SetUsbDevice()
SetUsbDevice retrieves the devices number currently found in the system.
Parameters
None
Return Value
The amount of devices currently found in the system. When no devices are found, zero
will be returned.
6.3.2.2 SetDeviceStatus
int SetDeviceStatus ( [in] int DevIdx, [in] char Pos1, [in] char Pos2, [in] char Pos3, [in] char
Pos4, [in] char Pos5)
SetDeviceStatus sets the status for all outputs.
Parameters
DevIdx
Index to the desire device currently available in the system. The first index is 1.
Pos1, Pos2, Pos3, Pos4, Pos5
Sets port 1, 2, 3, 4 and 5 to OFF, ON, Blinking mode 1 or Blinking mode 2, depending
on value.
Macro Value As Char Value in ASCII Description
OFF 0 0x30 Port off
ON 1 0x31 Port on
Blinking mode 1 2 0x32 Blinking mode 1
Blinking mode 2 3 0x33 Blinking mode 2
Don’t Care X 0x58 No change on that port
Return Value
1 if successful, otherwise the return value is -1.
Further Functions
SetIOStatus Sets the status (ON or OFF) for all Outputs
SetSingleIO Sets the status (ON, OFF, Blinking mode 1, Blinking mode 2) of a
single Output
GetIOStatus Gets the current Output status (ON or OFF) for all Outputs
GetSingleIO Gets the status (ON, OFF, Blinking mode 1, Blinking mode 2) of a
specified single Output