ICP DAS USA I-7521 User Manual page 132

Table of Contents

Advertisement

The demo program, hp23_1.c, is designed to allow a Host PC
to be linked to a remote HP34401A. Refer to the companion CD
for the source code of the hp23_1.c file. The key features of
hp23_1.c are as follows:
 The RTS3 pin of COM3 port on each module must first be set
as active HIGH to enable the HP34401A.
 The configuration of the COM ports on the I-7523 module is
as follows:
Baud Rate
Parity
Data
Stop-bit
 The address mapping for this configuration is given as
follows:
I-7523 Address
01h
The InitHP() and CloseHP() function of hp23_1.c are as
follows:
void InitHP(int ComNo)
{
com[ComNo].ComNo = ComNo;
com[ComNo].BaudRate = 9600L;
com[ComNo].DataFormat = Data8bit + NonParity + Stop1bit;
com[ComNo].CheckSum = CHKSUMdisable;
OpenCOM(ComNo);
HPSendCommand(ComNo, ":02SYST:REM");
HPSendCommand(ComNo, ":02*CLS");
HPSendCommand(ComNo, ":03SYST:REM");
HPSendCommand(ComNo, ":03*CLS");
WaitClock(18);
}
void CloseHP(int ComNo)
{
HPSendCommand(ComNo, ":02*CLS");
HPSendCommand(ComNo, ":02SYST:LOC");
HPSendCommand(ComNo, ":03*CLS");
HPSendCommand(ComNo, ":03SYST:LOC");
CloseCOM(ComNo);
}
I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User's Manual,Ver2.5 Aug.2015
COM2 (485)
9600 (default)
None (default)
8 (default)
1 (default)
Corresponding COM3
address
02h
COM3 (232)
9600 (default)
Even
7
2
Corresponding COM4
// #1 HP
// #1 HP
// #2 HP
// #2 HP
// #1 HP
// #1 HP
// #2 HP
// #2 HP
COM4 (232)
9600 (default)
Even
7
2
address
03h
132

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7522I-7522aI-7527I-7524I-7523

Table of Contents