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;
}
Summary of Contents for USB WATCHDOG STICK
Page 1: ...Hardware Description März USB WATCHDOG STICK 2016 ...
Page 4: ...I Introduction Seite 4 Introduction ...
Page 6: ...II Hardware description Seite 6 Hardware description ...
Page 8: ...Hardware description Seite 8 2 1 Overview screen ...
Page 16: ...III Software Seite 16 Software ...
Page 35: ...Software Seite 35 Choose the option create VIs for DLL and press continue ...
Page 45: ...Software Seite 45 ...
Page 46: ...IV DELIB API reference Seite 46 DELIB API reference ...
Page 60: ...V Appendix Seite 60 Appendix ...