![Tektronix 2714 Скачать руководство пользователя страница 249](http://html1.mh-extra.com/html/tektronix/2714/2714_programmers-manual_1077901249.webp)
Programming
2714 & 2715 Programmer Manual
6–51
where:
IND$
= Null for ASCII, #H for hex, % for binary
BC$
= Null for ASCII, 0201 for hex, CHR$(2)+CHR$(1) for binary (Byte
Count)
DATA$
= 512 data points, appropriately encoded, representing the curve
CK$
= Null for ASCII , HEX$(chksum) for hex, “0”+HEX$(chksum) if
chksum < 16, CHR$(chksum) for binary (Checksum)
The
FILE
command/query transfers named data files between the spectrum
analyzer and controller.
FILE
and
FILE?
enable data from one instrument to be
returned for disk storage and subsequent transmission to another instrument, or
perhaps, to the same instrument in the event of NVRAM failure. They are not
intended or well-suited for viewing curves or editing settings.
Permissible file names are established by the spectrum analyzer, and are listed
under the
FILE
command discussion in Command and Query Definitions. The
files are created within the spectrum analyzer’s memory only as required. That
is, a
BSET03
file exists only if the B-register settings have been previously saved
in the third storage location. The currently created files can be viewed by
pressing the key sequence [UTIL MENU] [4] [6].
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.FILE:
'ENTER THE 2714 or 2715 FILENAME FOR THE FILE TO UPLOAD
'SEE TABLE 4Ć3 FOR A LIST OF THE NAMES
FILE2714 or 2715$ = <2714 or 2715 FILENAME>
'TURN ON HEADER, REQUEST FILE
WRT$ = "HDR ON;FILE? "+FILE2714 or 2715$
CALL IBWRT(BD%,WRT$)
'READ FILE INTO STRING VARIABLE RD$
CALL IBRD(BD%,RD$)
'TRIM STRING VARIABLE TO NUMBER
'OF CHARACTERS TRANSFERRED
FILEDAT$ = MID$(RD$,1,IBCNT%)
RETURN
:
PUT.FILE:
'SEND THE FILE IN MEMORY BACK TO THE 2714 or 2715
Transferring Files
Example 6–5
Subroutines to Return or
Transmit Data Files
Содержание 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: ......