
EDAM-4200 Series User’s manual Version 1.03
7.5.17
TCP_GetIPFromID
Description:
get IP address for a specific module ID number. This function is helpful when the module is DHCP
enabled
Syntax:
♦
Visual Basic:
(see TCPDAQ.bas)
Declare Function TCP_GetIPFromID Lib "TCPDAQ.dll" Alias "_TCP_GetIPFromID@8" (ByVal szID As Byte, ByRef
szIP As String) As Long
♦
Borland C++ Builder:
(see TCPDAQ.h)
Int TCP_GetIPFromID(u_char szID ,char szIP[]);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_GetIPFromID(szID: Byte; szIP: PChar): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
Int TCP_GetIPFromID(u_char szID ,char szIP[]);
Parameters:
szID[in]
: module ID number (0~255)
szIP[out]
: 8 bit array that stored the IP address string(such as “192.168.0.2”)
Return Code:
refer to the
Error code
.
7.5.18
TCP_ScanOnLineModules
Description:
search on-line EDAM900 modules in the same subnet
Syntax:
♦
Visual Basic:
(see TCPDAQ.bas)
Declare Function TCP_ScanOnLineModules Lib "TCPDAQ.dll" Alias "_TCP_ScanOnLineModules@8" (ModuleIP As
ModuleInfo, ByVal Sortkey As Byte) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ScanOnLineModules( struct ModuleInfo ModuleIP[], u_char SortKey);
♦
Delphi:
(see TCPDAQ.pas)
Function Scan_OnLineModules (var ModuleIP: TModuleInfo; Sortkey: Byte): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
Int TCP_ScanOnLineModules( struct ModuleInfo ModuleIP[], u_char SortKey);
Parameters:
ModuleIP[out] : points to ModuleInfo structure array
SortKey[in] : sortkey word (by IP address,by ID number, or by Module no)
=SORT_MODULE_IP ,sort by IP address
=SORT_MODULE_ID ,sort by ID number
=SORT_MODULE_NO ,sort by module number
Return Code:
refer to the
Error code
.
7.5.19
TCP_GetDLLVersion
Description:
return the version number of TCPDAQ.dll
Syntax:
♦
Visual Basic:
(see TCPDAQ.bas)
Declare Function TCP_GetDLLVersion Lib "TCPDAQ.dll" Alias "_TCP_GetDLLVersion@0" () As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_GetDLLVersion(void);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_GetDLLVersion: Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
Int TCP_GetDLLVersion(void);
Printed Date: 27 February 2018
70