DELIB API reference | Seite
68
5. DELIB API reference
5.1. Management functions
5.1.1. DapiOpenModule
Description
This function opens a particular module.
Definition
ULONG DapiOpenModule(ULONG moduleID, ULONG nr);
Parameters
moduleID=Specifies the module, which is to be opened (see delib.h)
nr=Indicates No of module which is to be opened.
nr=0 -> 1. module
nr=1 -> 2. module
Return value
handle=handle to the corresponding module
handle=0 -> Module was not found
Remarks
The handle returned by this function is needed to identify the module for all other
functions.
Example program
// USB-Modul öffnen
handle = DapiOpenModule(RO_USB1, 0);
printf("handle = %x\n", handle);
if (handle==0)
{
// USB Modul wurde nicht gefunden
printf("Modul konnte nicht geöffnet werden\n");
return;
}
Содержание USB-OPTOIN-8
Страница 1: ...Hardware Description Dezember USB RELAIS 8 OPTOIN 8 2012 ...
Страница 5: ...INDEX Index 5 Seite 6 Appendix 98 6 1 Revisions 98 6 2 Copyrights and trademarks 99 ...
Страница 6: ...I Introduction Seite 6 Introduction ...
Страница 8: ...II Hardware description Seite 8 Hardware description ...
Страница 11: ...Hardware description Seite 11 2 2 2 Product pictures USB RELAIS 8 USB RELAIS 8_A USB RELAIS 8_B ...
Страница 12: ...Hardware description Seite 12 2 2 3 Overview screen ...
Страница 16: ...Hardware description Seite 16 2 3 2 Product pictures USB OPTOIN 8 USB OPTOIN 8_A USB OPTOIN 8_B ...
Страница 17: ...Hardware description Seite 17 2 3 3 Overview screen ...
Страница 20: ...Hardware description Seite 20 ...
Страница 21: ...III Firmware update Seite 21 Firmware update ...
Страница 24: ...Firmware update Seite 24 After successful update procedure the message FLASH OK appears ...
Страница 25: ...IV Software Seite 25 Software ...
Страница 39: ...Software Seite 39 Check under Projekte und Projektmappen Erweiterte Buildkonfigurationen anzeigen ...
Страница 48: ...Software Seite 48 Choose the option create VIs for DLL and press continue ...
Страница 49: ...Software Seite 49 In the next window choose the path to the delib h and delib dll and press continue ...
Страница 50: ...Software Seite 50 Press continue again The Header File will now be analized Afterwards press continue ...
Страница 51: ...Software Seite 51 Follow the instructions and configurate the name and the saving location for the VIs ...
Страница 52: ...Software Seite 52 In the new window choose Easy error correction in the drop down menu and press continue ...
Страница 67: ...V DELIB API reference Seite 67 DELIB API reference ...
Страница 97: ...VI Appendix Seite 97 Appendix ...