Programming The Unit Over The Hp-Ib; Program Codes (Data Received By The Unit); Storing Into Registers (Y, Z, Delay, Etc.) Over The Hp-Ib - HP 3456A Operating And Service Manual

Digital voltmeter
Hide thumbs Also See for 3456A:
Table of Contents

Advertisement

Model 3456A
I . ABORT all previous operations
2. Set the 3456A to REMOTE
3. CLEAR the 3456A
4. LOCAL LOCKOUT the Instrument
5. Send DATA to set up the 3456A to
a) the de function
b) autorange
c) hold trigger
d) set SRQ mask to Illegal Instrument State,
Internal Error, and Syntax Error.
6. TRIGGER the 3456A
7. Send the measurement DATA to the controller
and store in a variable
8. Check the 3456A to see if it REQUIRE's SER·
VICE
9. If REQUIRE SERVICE, check the STATUS
BYTE; otherwise skip the next step
10. If the 3456A sent the STATUS BYTE, it did RE·
QUIRE SERVICE and the program is ended
1 1 . Print out the DATA from the variable
12. CLEAR LOCKOUT AND SET LOCAL
13. End program
3·163.
Programming the
345&A
3-164. Programming the 3456A is done by DATA
messages. Remember, DATA is sent or received. The
DATA received by the 3456A is for instrument set up
(function, range, etc.). The DATA sent by the 3456A is
output data. Included in the following paragraph are
programming examples of the Bus Messages and the
algorithm. They are given in the HP-IB format, HPL
(9825A Controller Language), and Enhanced Basic
(9835A/B and 9845B Controller Language).
Progrlm Codes (Oltl received by the
3·165.
3-166. Program codes are used for the 3456A's set up
information. A listing of the codes is in Table 3-9. The
instrument must be in "remote" and "listen" to receive
the codes. An example is as follows.
a. HP-IB Format:
.• _ ... �.m .... .. ..
odd ....
COIluolltt ·'talk·'
)..I 5 6A
.... " addf ...
"�.I
over the Hp·IB.
3456AI.
DATA MODE
b. HPL (9825A Controller Language).
wrt 722,"FI RI MO T4"
c. Enhanced Basic (9835A/B, 9845B Controller Lan­
guage).
OUTPUT 722;"FI R I MO T4"
NOTE
The "7" in the "722 " address code
9825A, 9835A/B and 9845B Controllers I/O
Card select code.
NOTE
The spaces between the program codes
( F/spaceRl, etc.) shown in the example are
not necessary. They are only included
separate the dif f erent program codes.
Storing into Registe,s lY,
3·161.
Hp·IB.
3-168. Storing into register is similar to the front panel
method. First enter the number to be stored and then
store it into the register. The following examples shows
how to do it. by storing "10" into the Number of
Readings/Trigger register. The DCV function's pro­
gram codes is also included in the example to show that
other than register program codes can be in the same
string.
a. HP-IB Formal.
CMD MODE
,
u
.]
..
unli"e. command
)..I 56A '.
"'alk" add, ...
<:0<11<011
"li"en" add, ...
b. HPL (9825A Controller Language).
wrt 122, "F! IOSTN"
c. Enhanced Basic (9835A/B. 9845B Controller
Language).
OUTPUT 722;"FI IOSTN"
In the example, " F ! " and " IOSTN" is separated by a
space to keep the numbers apart. This is not necessary
but may be less confusing. You can, however, enter a
"W" instead of a space. The "W" is ignored by the
3456A but can be used to separate numerical entries
from commands. The same program string with "W"
looks like this:
"FIWIOSTN"
Operation
is
the
10
Z,
,
Delay
over the
etc.,
DATA MODE
!O ..
adin,_ In,CI rq:iUfr
N
(I
lleadin,.)
Clr
DC
FUr><1ion
3-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents