
Programming
6–56
2714 & 2715 Programmer Manual
NOTE
. The 2714 or 2715 must have a spectral display on its screen when any
RS-232 or GPIB program is executed. If the 2714 or 2715 is displaying a menu
when a program is executed, the program will not run properly.
GET.PLOT:
'RESERVE SPACE FOR SCREEN DATA
PLOT.DAT$ = SPACE$(12000)
'SET PLOTTER TYPE AND REQUEST SCREEN DATA
WRT$ = PTYPE HPGL4;PLOT?"
CALL IBWRT (BD%,WRT$)
'GET SCREEN DATA
CALL IBRD (BD%,PLOT.DAT$)
'TRIM DATA TONUMBER OF BYTES TRANSFERRED
PLOT.DAT$=MID$(PLOT.DAT$,1,IBCNT%)
RETURN
:
SEND.PLOT:
'DISABLES TIME OUT TO GIVE PLOTTER TIME TO FINISH
CALL IBTMO(BD%,0)
CLS
'SEND SCREEN DATA TOPLOTTER
PLOTTER$ = "HC100"
CALL IBFIND(PL%,PLOTTER$)
CALL IBWRT(PL%,PLOT.DAT$)
'PRESS A KEY AFTER PLOTTER FINISHES
PRINT "PRESS ANY KEY TOCONTINUE"
DOWHILE INKEY$ = ""
LOOP
'REESTABLISHES 30ĆSECOND TIME OUT
CALL IBTMO(BD%,14)
RETURN
NOTE
. The 2714 or 2715 must have a spectral display on its screen when any
RS-232 or GPIB program is executed. If the 2714 or 2715 is displaying a menu
when a program is executed, the program will not run properly.
Example 6–6
Subroutines to Return or
Send Screen Plot Data
Summary of Contents for 2714
Page 4: ......
Page 11: ...Introduction ...
Page 12: ......
Page 38: ...Introduction to Programming 1 26 2714 2715 Programmer Manual ...
Page 39: ...Message Structure ...
Page 40: ......
Page 54: ...Instrument Specific Message Structure 2 14 2714 2715 Programmer Manual ...
Page 55: ...Functional Groups ...
Page 56: ......
Page 85: ...Command Query ...
Page 86: ......
Page 179: ...Status Reporting ...
Page 180: ......
Page 197: ...Programming ...
Page 198: ......
Page 266: ...Programming 6 68 2714 2715 Programmer Manual ...
Page 267: ...Appendices ...
Page 268: ......
Page 276: ...Appendix A RS 232 Concepts A 8 2714 2715 Programmer Manual ...
Page 296: ...Appendix B GPIB System Concepts B 20 2714 2715 Programmer Manual ...
Page 297: ...Index ...
Page 298: ......
Page 307: ......
Page 308: ......