Command and Query Definitions
2714 & 2715 Programmer Manual
4–37
Arguments: None,
<filename>"
This is a simple query that returns a file stored in the spectrum analyzer to the
controller. When used without an argument,
FILE?
returns the file specified by
the previous
FILE
command. When used with a
<filename>
argument,
FILE?
returns the named file. The filename, when specified, must be in quotes (”). All
filenames must match (including case) one of those listed in Table 4–4.
The filenames in the spectrum analyzer are established by its firmware. A
directory of currently created files can be viewed by pressing the key sequence
[UTIL] [4] [6] or [UTIL] [5] [4] [1] [0]. Files are created within the spectrum
analyzer’s memory only as required. That is, a
BSET03
settings file is only
present when B-register settings have been stored previously in the third storage
location.
DSET00
and
SET0BU
are two special files created automatically by the spectrum
analyzer. They contain the D-register settings used when the spectrum analyzer
was last turned off. They are listed as LAST POWER-DOWN, which is accessed
by pressing the key sequence [UTIL] [1] [0].
SET0BU
is a backup in case
DSET00
becomes corrupted at the next power-up.
The
FILE?
query enables you to store a spectrum analyzer file on disk for later
restoration to the same or another spectrum analyzer. The file is in binary format,
and the first bytes of the response are the ASCII character codes for
<filename>
.
If
HDR
is
ON
before issuing the
FILE?
message, the query and response have this
format:
FILE? <filename>"
FILE <filename>",<data block>
The response is in exactly the format needed to send a file to the spectrum
analyzer. The general approach to file transfer is to read the response (including
header and filename) into a string variable and write the variable to a disk file.
The presence of
FILE <filename>"
within the disk file makes it possible to
restore the file to the spectrum analyzer without explicitly sending the
FILE
command or specifying the spectrum analyzer file name.
Follow this sequence to store a spectrum analyzer file:
1. Send HDR ON to the 2714 or 2715.
2. Send FILE? “<filename>” query to 2714 or 2715.
3. Read response into string variable FILEDAT$.
4. Write FILEDAT$ to disk file MYPROG.
Use this sequence to restore the file:
1. Read file MYPROG to string variable FILEDAT$.
FILE? or FILE? <arg>
Содержание 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: ......