![Tektronix 2714 Скачать руководство пользователя страница 35](http://html1.mh-extra.com/html/tektronix/2714/2714_programmers-manual_1077901035.webp)
Introduction to Programming
2714 & 2715 Programmer Manual
1–23
H
To make your QuickBASIC program a stand-alone
*.EXE
file, you need an
additional library file. Type this command from the DOS command line:
LIB GPIB.LIB + QBIB4.OBJ + QBIB4728.OBJ;
H
Start QuickBASIC using this command:
QB /L GPIB.QLB
This procedure ensures that the National Instruments GPIB subroutines needed
to control devices on the bus are present in the QuickBASIC environment. When
using another version of QuickBASIC, use the analogous files and procedures
indicated in the
READĆQB.DOC
document file from National Instruments.
You will learn more about controlling the spectrum analyzer in Sections 4
through 6 in this manual. However, we have provided a simple program here so
you can check the operation of your system and observe typical interactions
between the controller and spectrum analyzer. Be aware that the program is very
basic; it contains no error checking and may hang up the controller (requiring
you to reboot) if incorrect or unacceptable commands or queries are entered. It
will, however, accept uppercase or lowercase entries.
Alternatively, you can use the
IBIC
program supplied with the National
Instruments PCII/IIA GPIB board. It enables you to communicate with the
spectrum analyzer, but requires that you learn how to use a few simple subrou-
tines such as
IBWRT()
and
IBRD()
. See your National Instruments documenta-
tion for details.
Follow these steps to use the Example Program 1-1 located on the following
pages (
REM $INCLUDE: 'QBDECL4.BAS'
).
1. Start QuickBASIC according to the instructions in Installing and Configur-
ing the Device Driver on page 1–9. Enter the program. Be sure to enter the
program exactly as it is written. The spectrum analyzer must be named
TEK_SA
by the
IBCONF
program.
2. Place the spectrum analyzer ONLINE by selecting item 0 from the GPIB
PORT CONFIGURATION Menu (press the key sequence [UTIL] [4] [0]
[0]). The instrument is nominally ONLINE, but is not yet handshaking with
the controller.
3. Start the program. The computer display shows:
2714 or 2715 SHOULD NOW BE HANDSHAKING
NDAC SHOULD BE DISPLAYED
PRESS ANY KEY TOCONTINUE
When the spectrum analyzer is handshaking with the controller, NDAC (Not
Data ACcepted) is displayed at the lower right of the spectrum analyzer’s
screen. NDAC is asserted most of the time. It is unasserted only briefly
A GPIB Instrument
Control Program
Содержание 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: ......