![Tektronix 2714 Скачать руководство пользователя страница 37](http://html1.mh-extra.com/html/tektronix/2714/2714_programmers-manual_1077901037.webp)
Introduction to Programming
2714 & 2715 Programmer Manual
1–25
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.
REM $INCLUDE: 'QBDECL4.BAS'
RD$ = SPACE$(3000)
CLS
CALL IBFIND("GPIB0", BD%)
V% = 0
CALL IBSRE(BD%, V%)
CALL IBFIND("TEK_SA", BD%)
PRINT "2714 or 2715 SHOULD NOW BE HANDSHAKING"
PRINT "NDAC SHOULD BE DISPLAYED"
PRINT:PRINT "PRESS ANY KEY TO CONTINUE"
DO WHILE INKEY$ = ""
LOOP
WRT$ = "HDR ON"
CALL IBWRT(BD%, WRT$)
PRINT "2714 or 2715 SHOULD NOW BE IN REMOTE MODE"
PRINT:PRINT "PRESS ANY KEY TO CONTINUE"
DO WHILE INKEY$ = ""
LOOP
SEND.RCV:
CLS
PRINT:PRINT "ENTER MESSAGE TO SEND"
PRINT : INPUT WCALL IBWRT(BD%, WRT$)
QUES = INSTR(1, WRT$, "?")
HOLD.TIME = TIMER
DO WHILE TIMER < HOLD.TIME + 1
LOOP
IF QUES = 0 THEN GOTO MORE
CALL IBRD(BD%, RD$)
PRINT:PRINT "THE REPLY IS:"
PRINT:PRINT MID$(RD$, 1, IBCNT%)
MORE:
PRINT:PRINT
INPUT "SEND MORE (Y/N)? "; Y$
IF Y$ = "Y" THEN GOTO SEND.RCV
END
Example: GPIB Test
Program
Содержание 2714
Страница 4: ......
Страница 11: ...Introduction ...
Страница 12: ......
Страница 38: ...Introduction to Programming 1 26 2714 2715 Programmer Manual ...
Страница 39: ...Message Structure ...
Страница 40: ......
Страница 54: ...Instrument Specific Message Structure 2 14 2714 2715 Programmer Manual ...
Страница 55: ...Functional Groups ...
Страница 56: ......
Страница 85: ...Command Query ...
Страница 86: ......
Страница 179: ...Status Reporting ...
Страница 180: ......
Страница 197: ...Programming ...
Страница 198: ......
Страница 266: ...Programming 6 68 2714 2715 Programmer Manual ...
Страница 267: ...Appendices ...
Страница 268: ......
Страница 276: ...Appendix A RS 232 Concepts A 8 2714 2715 Programmer Manual ...
Страница 296: ...Appendix B GPIB System Concepts B 20 2714 2715 Programmer Manual ...
Страница 297: ...Index ...
Страница 298: ......
Страница 307: ......
Страница 308: ......