Download Agilent E2094 SICL Libraries - Faculty of Science and Engineering

Transcript
6
Using SICL with RS-232
Example: Configuring RS-232 Interface
The ASRL (RS-232) interface system in the following figure
consists of a Windows PC with two RS-232 COM ports, each of
which is connected to a single Serial instrument via RS-232
cables. The IO Config utility has been used to assign COM Port 1
a SICL name of COM1 and to assign COM Port 2 a SICL name of
COM2. Since unique names have been assigned by IO Config, you
can now use the SICL iopen command to open the IO paths to
the GPIB instruments as shown in the figure.
ASRL Interface (RS-232 COM Ports)
Interface SICL Names
Windows PC
RS-232 Cable
Serial
Instruments
SICL Name
"COM1"
RS-232 COM Port 1
"COM2"
RS-232 COM Port 2
SICL Addressing
iopen ("COM1,488")
iopen ("COM2,488")
Open IO path to Serial instrument using COM Port 1
Open IO path to Serial instrument using COM Port 2
RS-232 Communications Sessions
RS-232 is a Serial interface that is widely used for
instrumentation. Although RS-232 is slow in comparison to
GPIB or VXI, its low cost makes it an attractive solution in many
156
Agilent SICL User’s Guide