Remote
Programming
EXAMPLE
PROGRAMS
I
i
I
I
I
I
I!
The following program illustrates one possible
use
of the serial
poll
register. In
this
2!
case it
is
merely looking for
data
available. The insmqt
is
addressed on port
Oy
3! device #4 under control of a We 1720A
or
172% insnu+nent controller. The function
4!
of
this
program
is
to display on the controller
screen
the Iswest resistance measured
5!
across the input terminals of the 88MA using the 2-wire ob function
in
autorange.
6!
The command string sets up the
8840A
by using
the
Put ihent Configuration command PO1
7!
8!
FLUKE-BASIC on 1720A, 1722iA
9!
I
I
100
INIT PORT
0
\
CLEAR
PORT 0
\
WAIT
500
!Clear
port,
imtrurnent,
delay
110 PRINT @4,
"N3001PO
Yl
?"
!instrument fLj,ctions and trigger
l20
INPUT
@4,
A&§
!Get first rea&g
130 PRINT
"
",A,A$;"S
(2-wire) Lowest Reading"
140
TRIG
@4
~
160
B%=SPL(4)
!Get serial
poll
registqr
I
170
IF
(B%=O%)
THEN
160
!Looking
for
qta
available
175 INPUT @4,R,A$
!Get next
data,
180
IF
R>
=A
THEN
140
!Throw away
gats
if
not lowest
,
185 A=R !Update lowest reading
190
GOT0
130 !Print new low
I
900
END
I
I
I
I
I
I
I
I
3-24
Figure
3-12.
Example Program: Using
the
qrial
Poll
Registel
I
I
-
-
L
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com