Model
3455A
Appendix
A
Example #2
(HP Basic)
10
20
30
40
50
60
?0
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370
380
390
400
410
420
DIN R[ 10]i.BfC20
CMD '•?U6".
"EY20SYEZ-691
CND "?U6"» "F1M1T3T3H0R1
CND ‘'?V5"
FDRMRT
4B«F6.0-
ENTER <13»50)B$*
B*[5]=B$C18]
CMD
‘'?U6"» "FSMSRZ-
FOR 1
=
1 TO
10-
CMD
"?U6-
FORMRT
SB-
OUTPUT (13j
110)256i
CND "?V5'
FORMRT
F13.6-
ENTER <13,
140>R[ I
]-
NEXT
I
FOR
J=1 TO
NR IT 100
DISP J
NEXT
Oimention Variables.
Store 20 into "Y"arxl -69100 Into
"Z"
Registers of
OVM
Set DVM to DCV IF1), Scale (M1>. Hold/ManusI
IT3I, High
Resolution Off <H0). Auto-Cal on |A1|,
10 V
Range
IR31.
and Sinary Program
IB).
Address OVM
to
Listen.
Format the Output.
Enter
Output
into String
Variable.
-Enter First Four Characters
of Output into String Variable
Set OVM to ACV (F3>. Math OH (M3), and Autorangs on
(R7).
CMD
"YUS"—
FORMRT
OUTPUT
<13,220)B$
CMD •'?U6"
FORMRT 3B^
OUTPUT
<13,250)256,8,5
CND
FORMAT
F13.6
ENTER
<13,280)0
FOR
1=1
TO
10
FORMRT
F13.5
NRITE
<15,310)RC
NEXT
I
PRINT
FORMRT
F13.0, '•R-
NRITE
<15,350)C'
PRINT-
PRINT-
CMD “YUe-
FORMRT SB-
OUTPUT
<13, 400)256,
4, oj
END-
12
-
Begin For.. .Next
Loop.
Address OVM
to
Listen, Controller
to Talk.
Format the Output.
Trigger the OVM (GET).
Set
OVM
to
Talk.
Format the Output Iresdingl.
Enter the Output of the OVM into Variable.
Complete For. ..Next Loop.
Local
Controller Operation without OVM.
—Set OVM to Listen.
—
Format to set OVM into Binary Mode.
—
Sat up OVM
to
Binary Information in String.
—
Set
OVM
to
Listen,
Controller to Talk.
—
Fornwt the
Output.
—
Trigger the OVM
(GET).
—
Set OVM
to
Talk.
Format the
Output
|resdir>g|.
Enter
Output
into Varieble.
Begin For. ..Next Loop.
Format the Default Printer.
Print the Entire Array.
Complete For. ..Next
Loop.
Skip a Space on Default Printer.
Format the Default Printer.
Print Value in Variable.
Skip a Space on Default Printer.
Skip a Space on
Default
Printer.
Set OVM to Listen, Controller
to
Talk.
Format the
Output.
Clear
the
OVM
(set to turn-on state), (SDC).
Ends
the Program.
A-3