Chapter 5 321
Programming Fundamentals
Using the LAN to Control the Instrument
Programming Fundamentals
Controlling Your Instrument with SICL LAN and BASIC for
UNIX (Rocky Mountain BASIC)
Before you can use Rocky Mountain Basic (HPRMB) with SICL LAN,
you will need to set up the SICL LAN I/O drivers for HPRMB. Consult
your system administrator for details.
Create a .rmbrc file in your root directory of your UNIX workstation
with the following entries:
SELECTIVE_OPEN=ON
Interface 8= "lan[analyzer IP address]:GPIB name";NORMAL
Replace analyzer IP address with the IP address of your instrument,
and GPIB name with the GPIB name given to your instrument. Also
replace the “8” of Interface 8 with the logical unit number. Consult
your HPRMB documentation for the exact syntax.
After your SICL driver is configured correctly on your UNIX
workstation, you control your instrument using commands such as the
following:
OUTPUT 818; "*IDN?"
ENTER 818; S$
where 18 is the device address for the instrument.
Using HP/Agilent VEE Over Socket LAN
(There is a VEE example program provided on the documentation
CD-ROM.)
(There is a LabView example program provided on the documentation
CD-ROM.)
To control your instrument via socket LAN using VEE, click on the VEE
menu titled "I/O." Then select “To/From Socket” and position the I/O
object box on the screen. Fill in the following fields:
Connect Port: 5025
Host Name: <your_hostname>
Timeout: 15