Keithley 194 Instruction Manual page 140

High speed voltmeter
Table of Contents

Advertisement

IEEE-488 PROGRAMMING
HP-85 Programming
Example-Use
the program below to
run the self test and obtain and display the Ul status word.
In this program, the instrument
is placed in remote (line
10) and then programmed to perform the self test (line 20).
The program waits 10 seconds for the instrument
to per-
form the self test (line 30), and then obtains and displays
the err"r status word (lines 40.70). B6 is the byte that flags
the result of the self test; this bit will be set to 1 if a failure
occurs.
Model
8573 Programming
Example-Add
the following
lines to the modified
declaration
file (paragraph
4.6.3) to
run the self test and display the resulting err"r word status.
In the above program the instrument
is placed in remote
(line 10) and then programmed to perform the self test (line
20). The loop in line 30 creates a delay that allows the in-
strument to complete the test before going any further. The
instrument
is then programmed
to obtain and display the
status word (lines 40-80). Byte 6 (B6) will flag the result
of the self test; this byte will be set to 1 if the self test fails.
4.10 TRANSLATOR
MODE
The standard Translator software allows you to define your
own programming
words in place of standard Keithley
device-dependent
commands.
One word can replace a
single command or a string of commands.
For example,
the word SAMPLES could be used in place of NO;lOOO. In
a more complex example, the word SETUP1 could be used
in place of ROFlT3G4.
The Translator mode can also be used to emulate the com-
mand syntax of other manufacturers'
products. For exam-
ple, Hewlett-Packard
uses the command RA to place their
instruments
in the autorange mode, while the Keithley
equivalent
is RO. By using the Translator mode, a kind of
standard programmming
language can be developed for
a number of different
instruments
on the bus.
The Translator mode uses a number of reserved words and
a special character, as summarized in Table 4-34. Note that
these words and character are reserved and cannot be used
as Translator words. In addition,
the X (execute) character
cannot be used in a Translator word.
Table
4-34.
Translator
Reserved
Words
and
Character
Word/Character
Descriptor
ALIAS
Defines Translator words.
NI;W
Terminates Translator string.
Enables Translator mode.
OLD
Disables Translator mode.
LIST
Allows access to Translator words.
FORGET
Purges Translator words.
The commands associated with the Translator mode are
discussed in the following
paragraphs.
4.10.1 Defining
Translator
Words (ALIAS)
Translator words are defined with the ALIAS command
by including
them in a programming
string with
the
desired device-dependent
commands. This process can be
demonstrated
by the
example
string
below,
which
translates the device-dependent
command string FlROX in-
to SETUPl:
4-50

Advertisement

Table of Contents
loading

Table of Contents