HP 61010A Owner's Manual page 53

Digital i/o
Table of Contents

Advertisement

Instrument
Programming
Statements
As explained in Chapters 2 and 3, the Digital I/O is
identified by two labels, one for each of the primary
functions of the instrument. In the following statements,
the label parameter must specify either the Digital Input or
the Digital Output. The label itself is either the factory
default label (DIG.IN.01; DIG.OUT.Ol for the first Digital
I/O in your system) or the user-defined label that is
assigned when the instrument is labeled in Rear Panel
Mode. All of the examples in this section assume that the
Digital Input and Digital Output are initially set with the
factory default labels and values. There are three kinds of
instrument statements that program the Digital I/O:
common statements, input specific statements, and output
specific statements. They are described as follows.
Statements
Common
to Input
and Output
\HM\M\ZE(labelfstatefile) * same as INITIALIZE.SYSTEM
except that it set either the Digital Input or the Digital
Output to a previously assigned state. Although the State
file contains information about the other instruments in
your system, only the information that applies to either
the Digital Input or the Digital Output will be retrieved.
Example:
1010 FILES= "YOURFILE"
1020 CALL INITIALIZE(DIG.IN.01,FILES)
This example initializes only the Digital Input to the
configuration and settings contained in the file YOURFILE.
YOURFILE can be any State file that you created and
named when operating from the Soft Front Panel.
ENABLE.HANDSHAKEf/abe/) • enables the handshake
mode of either the Digital Output or the Digital Input.
This allows you to operate your Digital I/O synchronously
with an external device. Refer to "Synchronous
Operation" in Chapter 3 for a complete description.
Programming With BASIC
5-5

Advertisement

Table of Contents
loading

Table of Contents