I/O Operation From Instrument Basic; Data Transfer Using The I/O Port; Reading Data From The I/O Port; Writing Data To The I/O Port - Agilent Technologies 4396B Gpib Programming Manual

Network/spectrum/impedance analyzer
Hide thumbs Also See for 4396B:
Table of Contents

Advertisement

For sample programs to control the analyzer, see the
Note
Guide.

I/O Operation from Instrument BASIC

This paragraph describes the input/output operations using the I/O port and the storage unit.
The following programs are covered in this section:

Data transfer using the I/O port

Reading data from the I/O port

Writing data to the I/O port

Disk I/O for a storage unit
Saving trace data
Loading trace data
Data Transfer Using the I/O Port
The following two examples show input and output operations of the I/O port. The
commands of Instrument BASIC directly control the I/O port and are faster than the
and
Reading Data from the I/O Port
This program shows how to directly read a speci c data bit from the I/O port.
d
c
Writing Data to the I/O Port
This program shows an example of writing data to the I/O port. When you use the output port
of the I/O port, the output data must be decimal data. Binary-expressed data is useful to set
each bit ON or OFF. If you want to set bits of the output port using binary data, use the
or
command of Instrument BASIC. This command allows you to convert data from binary
to decimal. The following example shows how to write binary data to the I/O port by using the
command.
d
c
6-2 Application Programs
GPIB commands.
Figure 6-2. Reading I/O Port
Figure 6-3. Writing Data to the I/O Port
GPIB Programming
and
a
b
a
b

Advertisement

Table of Contents
loading

Table of Contents