DELIB API reference | Seite
47
4. DELIB API reference
4.1. Management functions
4.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 WATCHDOG STICK
Страница 1: ...Hardware Description März USB WATCHDOG STICK 2016 ...
Страница 4: ...I Introduction Seite 4 Introduction ...
Страница 6: ...II Hardware description Seite 6 Hardware description ...
Страница 8: ...Hardware description Seite 8 2 1 Overview screen ...
Страница 16: ...III Software Seite 16 Software ...
Страница 26: ...Software Seite 26 Check under Projekte und Projektmappen Erweiterte Buildkonfigurationen anzeigen ...
Страница 35: ...Software Seite 35 Choose the option create VIs for DLL and press continue ...
Страница 36: ...Software Seite 36 In the next window choose the path to the delib h and delib dll and press continue ...
Страница 37: ...Software Seite 37 Press continue again The Header File will now be analized Afterwards press continue ...
Страница 38: ...Software Seite 38 Follow the instructions and configurate the name and the saving location for the VIs ...
Страница 39: ...Software Seite 39 In the new window choose Easy error correction in the drop down menu and press continue ...
Страница 45: ...Software Seite 45 ...
Страница 46: ...IV DELIB API reference Seite 46 DELIB API reference ...
Страница 60: ...V Appendix Seite 60 Appendix ...