| With the module a Windows DLL is included with the following functions that provide an interface between the user application and the JSB218 USB relay module. These functions can be called by any high level language or third party software that supports standard windows DLL calling convention. Software provided with the JSB218 module includes the DLL, USB Windows 98/ME/2000/XP driver, sample application source code for VisualBasic and VisualC++. |
|
DLL Functions |
|
Function |
Description |
| GetNumberOfModules | Returns the number of JSB218 Modules that are currently attached to the USB |
| GetSerialNumberOfModule | Returns a ascii string that is the serial number of the request JSB218 module. The serial number is a unique value assigned to all module, that allow multiple modules to be controlled. |
| GetNumRelays | Returns the number of relays installed on the module |
| FlashModuleLed | Flashes the LED on the module. |
| ModuleRelayOn | Turns on the selected relay |
| ModuleRelayOff | Turns off the selected relay |
| ModuleRelayMask | Turns all relays on modules per value |
| ModuleAllRelaysOn | Turns all the module relays on |
| ModuleAllRelaysOff | Turns all the module relays off |
| ModuleRelayStates | Returns the current status of the relays |
| IsModuleRelayOn | Returns True if given relay is on |