Remote 
Programming 
TALK-ONLY 
MODE 
Table 
3-3. 
Immediate-Mode  Commands 
for 
Val 
FUNCTION 
PERFORMED 
FLUKE-BASIC 
on 
1720A 
or 
1722A 
INITIALIZE Port 
CLEAR lnstrument 
REMOTE Commands 
LOCAL Control 
EXTERNAL TRIGGER 
TRIGGER  lnstrument 
GET Output Data 
PRlNT Data to Screen 
CONFIGURE for VAC 
CONFIGURE for 
200Vac 
TRIGGER Continuously 
SUFFIXES Enable 
GET Data 
B 
Suffix 
PRlNT Data 
B 
Suffix 
- 
- 
INIT PORT 0 
CLEAR @4 
REMOTE @4 
LOCAL @4 
PRINT @4."TlW 
TRIG @4 
, 
INPUT @4,A 
PRINT A 
PRlNT 
@4."F2 
PRlNT @4."R4" 
PRlNT @4,"TO 
PRlNT @4."Yl" 
INPUT @4, A.A$ 
, 
PRlNT A.A$ 
Notes: 
HP-HPL 
on 
HP9825 
Calculator 
cli 7 
clr 704 
rem 704 
Icl 704 
wrt 
704,"TlW 
trg 704 
red 704,  A 
prt A 
wrt 704,"F2" 
wrt 704,"R4 
wrt 
7O4,"TOn 
wrt 704,"Yl" 
red 704,A,A$  (Note 
1) 
prt A$,A 
)us 
Controllers 
HP-BASIC 
on 
HP9816-PC 
and 
HP-85 
Calculator 
CLEAR 7 
CLEAR 704 
REMOTE 704 
LOCAL 704 
OUTPUT 
704;"Tl" 
TRIGGER 704 
ENTER 704;A  (Note 2) 
PRINT A (Note 
2) 
OUTPUT 704;"FZ 
OUTPUT 704;"RC 
OUTPUT 704;"TO 
OUTPUT 704;"Yl" 
ENTER 704;A,A$  (Note 
2) 
PRlNT A,A$  (Note 
2) 
TEK-BASIC 
on 
4051 
Graphics 
Systen 
INIT 
PRINT 
@I:"*" 
WBYTE Q36.17: 
WBYTE @36,'1: 
PRlNT 
@:"TI" 
PRlNT @4:"?" 
INPUT @4:A 
PRlNT A 
PRlNT 
@4:"F2 
PRlNT @:Ti4 
PRlNT 
@:"TO" 
PRINT 
@4:"YIw 
INPUT W:A,A$ 
PRINT A,A$ 
1. 
Before using A$ on the9825 is necessary to 
enterUdim A$[6]" to allocate astring variable.Thisstatement allows six characters. 
2.  In the HP9816 system, variables cannot be created from the keyboard; they must be created by running a program. (See error 
910 for that system.) To get around this, type in a very short program as follows: 
SCRATCH  (Hit "EXEC"  key) 
10A=O  (Hit "ENTER"  key) 
20 A$ 
= 
-" 
(Hit "ENTER"  key) 
30 END  (Hit "ENTER" key) 
(Hit "RUN" key) 
This program creates the variables 
'A' 
and 'A$' so that they may be accessed in immediate mode and changed at will. This 
program is not necessary for the HP-85 Calculator. 
3-58. 
TIMING CONSIDERATIONS 
- 
3-60. 
DCAMPLE PROGRAMS 
To help you  take the best  advantage of  the  speed of  the 
8840A, 
external trigger timing for the IEEE-488  Interface 
is  described in  the  specifications 
in 
Section 
1. 
3-59. 
IMMEDIATE MODE COMMANDS 
Many controllers have some amount of  "immediate mode" 
capability. That  is,  commands may 
be 
given interactively 
to the 
8840A 
via the run-time-system without the need for 
actually  running  a  program.  The  controller  accepts  and 
executes these commands one at a time.  Some commonly 
used  commands are listed in  Table 
3-3 
for  several con- 
trollers. These are provided for the convenience of im- 
ment  demonstrations, set-up and check-out, and for thosec 
with  limited  experience with  IEEE-488 bus  operations. 
As 
a general note: The entire 
8840A 
command set should 
work  well  provided  the "port  clear"  and  "device  clear" 
commands are given first. You  should then 
be 
abie to send 
any  other commands in the 
8840A 
command set without 
repeating  the  clearing  commands. 
Several  example programs  for  the 
8840A 
using  various 
controllers are presented  in the  remaining figures in this 
sedion.  In  all  of  these  examples,  the 
8840A 
is set  to 
IEEE-488 address 
4 
(rear panel switch setting 000100). 
Of 
course, any other address 
(00 
to 
30) 
could 
be 
substituted. 
In each of  these examples, the instrument is cleared prior 
to  configuration  set-ups.  This  ensures  that  the 
8840A 
configuration has  been  completely  defined. 
To run these programs, it 
is 
not necessary to type in all the 
comments (which 
appear 
to 
the 
right  of 
the 
exclamation 
marks). 
Also, 
spaces  are placed  between  commands  for 
ease of  reading;  they  are  not  required. 
NOTE 
For  the  examples  using  the  Fluke 
I720A 
or 
1722, 
the 
8840A 
is plugged  into port 
0. 
The 
port 
is 
initialized 
by 
the INIT  statemen4  which 
sends 
IFC  (interface clear). 
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com