
EDAM-4200 Series User’s manual Version 1.03
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_WriteDO(szIP: PChar; wStartDO: Integer; wCount: Integer;ByDo: PByte): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
int TCP_WriteDO(Char szIP[], u_short wStartDO, u_short wCount,u_char byDO[]);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
wStartDO[in]
: the starting channel that to be written.
wCount[in]
: how many channels to be written.
byDO[in]
: an 8 bit array that stored the values that written to the connected EDAM-4200
Return Code:
refer to the
Error code
.
7.5.40
TCP_WriteDOPulseCount
Description:
to write the pulse output count for EDAM-4200 DIO modules during runtime
Syntax:
♦
Visual Basic: (
see TCPDAQ.bas
)
Declare Function TCP_WriteDOPulseCount Lib "TCPDAQ.dll" Alias _ "_TCP_WriteDOPulseCount@12" (ByVal szIP
As String, ByVal wDoChannel As Integer, ByVal ulPulseCount As Long) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
int TCP_WriteDOPulseCount(char szIP[],u_short wDoChannel,u_long ulPulseCount);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_WriteDOPulseCount(szIP: PChar; wDoChannel: Integer; ulPulseCount: Longint): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
int TCP_WriteDOPulseCount(char szIP[],u_short wDoChannel,u_long ulPulseCount);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
wDoChannel[in] : the channel index for writing
ulPulseCount[in] : the pulse output count.
Return Code:
refer to the
Error code
.
7.5.41
TCP_WriteDODelayWidth
Description:
to set the pulse and delay signal widths to specific EDAM-4200 DIO modules
Syntax:
♦
Visual Basic: (
see TCPDAQ.bas
)
Declare Function TCP_WriteDODelayWidth Lib "TCPDAQ.dll" Alias "_TCP_WriteDODelayWidth@24" (ByVal szIP
As String, ByVal wChno As Integer, ByVal ulLoPulseWidth As Long, ByVal ulHiPulseWidth As Long,
ByVal ulLoDelayWidth As Long, ByVal ulHiDelayWidth As Long) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int
TCP_WriteDODelayWidth(Char szIP[], u_short wChno,u_long ulLoPulseWidth,u_long ulHiPulseWidth,
u_long ulLoDelayWidth,u_long ulHiDelayWidth);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_WriteDODelayWidth (szIP: PChar; wChno: Integer; ulLoPulseWidth: Longint; ulHiPulseWidth:
Longint;ulLoDelayWidth: Longint; ulHiDelayWidth: Longint): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
int TCP_WriteDODelayWidth(char szIP[], u_short wChno,
u_long ulLoPulseWidth, u_long ulHiPulseWidth,
u_long ulLoDelayWidth, u_long ulHiDelayWidth);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
wChno[in]
: the channel index for writing
ulLoPulseWidth[in] : the output pulse signal width at low level.
Printed Date: 27 February 2018
78