![Tektronix 2714 Скачать руководство пользователя страница 248](http://html1.mh-extra.com/html/tektronix/2714/2714_programmers-manual_1077901248.webp)
Programming
6–50
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.CURVE:
'ESTABLISH SOURCE REGISTER AND ENCODING, ENSURE
'HEADER IS TURNED ON
WRT$ = WFMPRE WFID:D,ENCDG:ASCII;HDR ON"
CALL IBWRT(BD%,WRT$)
'RESERVE SPACE FOR THE DATA
RD$ = SPACE$(2056)
'RETURNTHE CURVE DATA
WRT$ = "CURVE?"
CALL IBWRT(BD%,WRT$)
CALL IBRD(BD%,RD$)
'TRIM AND DISPLAY THE DATA ON SCREEN
PRINT MID$(RD$,1,IBCNT%)
RETURN
:
PUT.CURVE:
'ESTABLISH ENCODING AND DESTINATION REGISTER
'SAVE THE REGISTER
WRT$ ="WFMPRE WFID:A,ENCDG:ASCII;SAVE A:ON"
CALL IBWRT(BD%,WRT$)
'TRIM CURVE DATA AND SEND IT
'CURVE COMMAND HEADER IS INCLUDED IN RD$
WRT$ = MID$(RD$,1,IBCNT%)
CALL IBWRT(BD%,WRT$)
RETURN
The curves transferred to the spectrum analyzer in these examples are the
previously returned waveforms, but you can also send artificially generated
curves. Such curves can be generated in ASCII format using a spreadsheet.
Curves should always be transferred to a saved register to ensure they are not
immediately overwritten by the next spectrum analyzer sweep.
Whenever a curve is generated, the
WRT$ = MID...
line in the
PUT.CURVE
subroutine must be replaced by a statement such as this one:
WRT$ = "CURve "+IND$+BC$+DATA$+CK$
Example 6–4
Subroutines to Return or
Transmit Curve Data
Содержание 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: ......