
Software |
Seite
70
5.5.1. Customisation for USB-Modules (only Linux)
In order to access the right module under Linux via DELIB CLI, you have to set
the module id at the command "DapiOpenModule". Therefore you can find in
the directory "/deditec-cli/source" the file "delib_cli_open_module_usb.c" after
unzipping the ZIP archive.
By default, the program "delib-cli-usb" (see source code) tries to open a RO-
USB module. If the module is not found, it will try to open an USB-Mini-Stick,
and so on...
Since this causes unnecessary error-messages, you can simply remark not
needed entries.
#include "../../delib-sources/delib/delib.h"
ULONG handle;
ULONG delib_cli_open_module()
{
handle = DapiOpenModule(RO_USB, 0);
if(handle==0)
{
handle = DapiOpenModule(USB_MINI_STICK, 0);
}
if(handle==0)
{
handle = DapiOpenModule(USB_RELAIS_8, 0);
}
if(handle==0)
{
handle = DapiOpenModule(USB_OPTOIN_8_RELAIS_8, 0);
}
if(handle==0)
{
handle = DapiOpenModule(USB_OPTOIN_16_RELAIS_16, 0);
}
if(handle==0)
{
handle = DapiOpenModule(USB_OPTOIN_32_RELAIS_32, 0);
}
return handle;
}
Note:
The project "delib-cli-usb" has to recompiled after each modification.
Therefore, you can find in the directory "/deditec-cli/", the shell script
Summary of Contents for ETH-RELAIS-8
Page 1: ...Hardware Description Juli ETH RELAIS 8 OPTOIN 8 2019 ...
Page 6: ...I Introduction Seite 6 Introduction ...
Page 8: ...II Hardware description Seite 8 Hardware description ...
Page 13: ...Hardware description Seite 13 2 2 3 Overview screen ...
Page 17: ...Hardware description Seite 17 2 3 2 Product pictures ETH RELAIS 8 ...
Page 18: ...Hardware description Seite 18 2 3 3 Overview screen ...
Page 21: ...Hardware description Seite 21 ...
Page 22: ...III Hardware Seite 22 Hardware ...
Page 28: ...Hardware Seite 28 Geben Sie hier den Text ein ...
Page 29: ...IV Firmware update Seite 29 Firmware update ...
Page 32: ...Firmware update Seite 32 After successful update procedure the message FLASH OK appears ...
Page 33: ...V Software Seite 33 Software ...
Page 56: ...Software Seite 56 Choose the option create VIs for DLL and press continue ...
Page 71: ...Software Seite 71 compile_delib_cli_usb sh with which you can compile the project under Linux ...
Page 77: ...VI DELIB API reference Seite 77 DELIB API reference ...
Page 107: ...VII Appendix Seite 107 Appendix ...