WERMA SIGNALTECHNIK
Version 1.2.0 - 0911
15
6.
Operation with Dynamic Link Library (DLL)
6.1
Introduction
The USB terminal element provides connectivity for a signal tower to the PC via USB.
The user controls the USB module by using a specified dynamic link library (DLL) file found on
the CD provided with the USB terminal element. The DLL contains several functions to set and
retrieve the light module status.
The control over the light module is generally carried out by a customer application. The
control over the module from the user application is achieved via a specific DLL which shares
all the commonly needed functions. The DLL library is a standard windows functions library
which can be easily used with the most common application development tools such as
Visual Basic, Visual C++ etc.
6.2
Related files and executables
Runtime files:
The DLL Library should reside in a file located in the same folder with user project .EXE file. This
file communicates with the USB module.
slma.dll
Contains functions which provide control over the USB module
6.3
DLL Functions
6.3.1
Function Overview
1
Please note that Linux, Mac OS X and Windows CE do not support location IDs.
2
Please note that these two functions cover the further functions (see next page).
Basic Functions
SetUsbDevice
Returns
the
number
of
devices
currently found in the system
SetDeviceStatus
2
Sets
the status (ON, OFF, Blinking mode 1, Blinking mode 2) for
all
Outputs
GetDeviceStatus
2
Gets
the current Output status (ON, OFF, Blinking mode 1, Blinking
mode 2) for
all Outputs
GetDeviceSerial
Gets
the specified device
serial code
GetDeviceLocation
1
Gets
the
Location ID
of the USB port, where the device is connected
GetFirmwareVersion
Gets
the specified device
firmware version
GetLibVersion
Gets
the currently used
library version
Summary of Contents for KombiSIGN 71
Page 2: ......