DELIB API reference | Seite
52
4.1.5. DapiOpenModuleEx
Description
This function opens a specific RO-ETH-module.The particularity of this command
is, that parameters like IP-address and portnumber can be specified.
Definition
ULONG DapiOpenModuleEx(ULONG moduleID, ULONG nr, unsigned char*
exbuffer);
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
exbuffer=buffer for IP-adresse and port
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.
Currently, this command is only supported by our RO-ETH-Series.
Example program
// Open ETH-Module with parameter
DAPI_OPENMODULEEX_STRUCT open_buffer;
strcpy((char*) open_buffer.address, "192.168.1.10");
open_buffer.portno = 0;
handle = DapiOpenModuleEx(RO_ETH, 0, (unsigned char*) &open_buffer);
printf("Module handle = %x\n", handle);
Содержание 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 ...