Programming
2714 & 2715 Programmer Manual
6–57
READOUTS:
'RESERVE SPACE FOR THE READOUTS
READOUT.DAT$ = SPACE$(448)
'REQUEST THE READOUTS
WRT$ = "PRDOUTS?"
CALL IBWRT(BD%,WRT$)
'RETURN THE READOUTS
CALL IBRD (BD%,READOUT.DAT$)
'TRIM DATA TO NUMBER OF BYTES RETURNED
READOUT.DAT$ = MID$(READOUT.DAT$,1,IBCNT%)
'DISPLAY THE READOUTS
PRINT READOUT.DAT$
RETURN
The
SET?
query can be used to return the current spectrum analyzer control
settings. The settings are returned in a message format containing the command
headers and arguments necessary to place the 2714 or 2715 in its current
configuration.
Settings can be saved in a controller disk file for later transfer to the same 2714
or 2715, or to another 2714 or 2715, when restoring the same operating
environment. Because the
SET
header is always suppressed in the response, the
response can be transmitted as received.
The
SET?
query is generally used in preference to settings file transfers for
several reasons:
H
The same command and format can be used with a variety of Tektronix
instruments for the same purpose.
H
The 2714 or 2715 implements the retransmitted settings as soon as received
rather than requiring a separate
RECall
command.
H
The returned settings are in ASCII format and can be easily read if necessary.
See the
SET?
query in Command and Query Definitions for details.
Figure 6–8 shows QuickBASIC subroutines for storing and reestablishing the
settings group. The routine is suitable for use with the National Instruments
GPIB board and software.
NOTE
. You must substitute the disk filename in which settings are to be stored in
place of “
filename
.”
Example 6–7
Subroutine for Returning
On-Screen Readouts
Saving and Restoring
Equipment Settings
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: ......