DELIB API reference | Seite
73
5.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);
Summary of Contents for USB-OPTOIN-8
Page 1: ...Hardware Description Dezember USB RELAIS 8 OPTOIN 8 2012 ...
Page 5: ...INDEX Index 5 Seite 6 Appendix 98 6 1 Revisions 98 6 2 Copyrights and trademarks 99 ...
Page 6: ...I Introduction Seite 6 Introduction ...
Page 8: ...II Hardware description Seite 8 Hardware description ...
Page 12: ...Hardware description Seite 12 2 2 3 Overview screen ...
Page 17: ...Hardware description Seite 17 2 3 3 Overview screen ...
Page 20: ...Hardware description Seite 20 ...
Page 21: ...III Firmware update Seite 21 Firmware update ...
Page 24: ...Firmware update Seite 24 After successful update procedure the message FLASH OK appears ...
Page 25: ...IV Software Seite 25 Software ...
Page 48: ...Software Seite 48 Choose the option create VIs for DLL and press continue ...
Page 67: ...V DELIB API reference Seite 67 DELIB API reference ...
Page 97: ...VI Appendix Seite 97 Appendix ...