Programming—DM
5010
Example
Programs
Talker Listener
Program For TEKTRONIX 4050-Series
Controllers
Talker
Listener Program
For TEKTRONIX 4040-Series
Controllers
100
REM
DM5010 Talker/Listener
ProSrae
110
REM DM5010
Primary Address 16
120
INIT
130
ON SRQ THEN 260
140
DIM A$
(200)
150 PRINT
"Enter Message(s):
";
160
INPUT C$
170
PRINT @16:C$
180
REM
Check for queries
190
IF
PO
S(C$,"?",1)<>0 THEN 220
200
REM Check for ’SEND
’
210
IF
POS(C$,"SEND"
,1)=0 THEN 150
220
REM Input from
device
230
INPUT
@16:A$
240
PRINT A$
250
GO
TO 150
260
REM Serial POLL Routine
270 POLL X,Y
;16
280
"Status By
te: " ; Y
290
RETURN
100
Rem DM5010
TALKER/LISTENER PROGRAM
110
Rem PRIMARY ADDRESS = 16
120
Init
all
130
On s
rq then gosub srqhdl
140 Enable srq
150
Dim
respons$
to 200
160
Input prompt ’ENTER MESSAGE(S): ":message$
170
Print #16:message$
180
Rem CHECK FOR
QUERIES
190
If po s( message$
,"?", 1) then goto 280
200 Rem
CHECK FOR 'SEND’ COMMAND
210
If pos(message$
,"SEND",1) then goto 280
220 Rem
CHECK FOR ’TEST’ COMMAND
230
If pos(message$,"TEST',1) then goto 280
240
Rem
CHECK FOR 'DATA' COMMAND
250
If pos(message$,"DATA",1) then goto 280
260 Goto 160
270
Rem INPUT FROM DEVICE
280
Input #16:respons$
290
Print "RESPONSE: ";
respons$
300
Goto 160
310
Rem SERIAL POLL ROUTINE
320
Srqhdl: poll stb,pri
330
"STATUS BYTE: ";stb
340
Resume
350 End
These
sample programs allow a user to send instrument
commands
to the
DM 5010 to change instrument settings
and
to
return the
data
generated.
Additional assistance in
developing specific application
oriented software is available
in the following
Tektronix
manuals.
070-3985-00
—GPIB Programming Guide. This manual is
specifically written
for applications of this instrument in
IEEE-488
systems.
It
contains programming instructions,
tips, and some specific example
programs.
070-2270-00
—4051
GPIB Hardware Support Manual.
This manual gives
an in-depth discussion of IEEE-488
bus
operation, explanations of bus
timing details and ear
ly bus interface
circuitry.
070-2058-01
—
Programming in BASIC
070-2059-01
—Graphic programming in BASIC
062-5971-01—4050-Series
programming
aids, T1 (in
cludes software)
062-5972-01
—
4050-Series programming aids, T2 (in
cludes
software)
070-2380-01
—
4907 File
manager operators manual
070-2128-00—
4924 Users manual
070-1940-01 —
4050-Series
graphic system
operators
manual
070-2056-01
—
4050-Series
graphic system reference
manual
070-3918-00
—4041
Operators manual
061-2546-00—4041
Programming reference manual
3-28
REV
JAN
1983
Summary of Contents for DM 5010
Page 14: ...DM 5010 2994 00 DM 5010 Programmable Digital Multimeter xii ADD JUL 1986...
Page 27: ...Operating Instructions DM 5010 2994 03 Fig 2 3 DM 5010 front panel controls and connectors 2 3...
Page 38: ......
Page 134: ......
Page 208: ......
Page 222: ......
Page 250: ......
Page 251: ...Section 8 DM 5010 OPTIONS No options are available 8 1...
Page 252: ......
Page 270: ......
Page 272: ...DM 5010 2994 37 Fig 10 2 Location of DM 5010 adjustments and test points...
Page 273: ......
Page 274: ......
Page 275: ......
Page 276: ...DM 5010 2994 112 DM 5010 BLOCK DIAGRAM...
Page 281: ......
Page 282: ......
Page 291: ......
Page 293: ......
Page 294: ......
Page 297: ......
Page 298: ......
Page 303: ......
Page 304: ...I...
Page 305: ......
Page 310: ......
Page 311: ......
Page 315: ......
Page 318: ......
Page 321: ......
Page 323: ......
Page 326: ......
Page 332: ...2994 57...
Page 334: ......
Page 335: ......
Page 336: ......
Page 337: ...63 REV JUN 1986...
Page 338: ...FIG 1 EXPLODED DM 5010...
Page 339: ......
Page 340: ......
Page 341: ......
Page 347: ......