
Programming
6–4
2714 & 2715 Programmer Manual
Program Example 6–1 performs the following functions:
1. It opens
COM1
and establishes RS-232 communications with the spectrum
analyzer using this configuration:
Baud rate:
9600
Data bits:
8
Stop bits:
1
Parity:
None
Verbose:
ON
Echo mode:
OFF
Terminator:
CR LF
Flow control:
NONE
If the 2714 or 2715 is not configured properly, the program displays an error
message. Refer to the description of the
RS232
command in Command and
Query Definitions and the RS-232 installation procedure in Introduction To
Programming for more information on RS-232 configuration.
2. The program accepts a spectrum analyzer command that the operator enters
at the computer keyboard, and sends the command to the spectrum analyzer.
3. The program terminates when the operator presses the [ESC] key on the
computer keyboard. This returns control to D0S.
4. The program always displays the 2714 or 2715’s VERBOSE response to the
command or query, and awaits further operator input.
NOTE
. The
SUB RS232.CALLS
subroutine in this program is identical to the
SUB
RS232.CALLS
subroutine used in Example 6–2.
The 2714 or 2715 must have a spectral display on its screen when this program
is executed. If the 2714 or 2715 is displaying a menu when the program is
executed, it will not run properly.
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: ......