
Programming
6–48
2714 & 2715 Programmer Manual
GPIB System Software
All of the programming examples in this manual make use of the subroutines
supplied by National Instruments as part of the GPIB or Tektronix GURU II
software. If you are using a board from another manufacturer, equivalent
software should have accompanied your board. This software supplies the
interface between the programming language and the installed GPIB board.
Table 6–2 lists the National Instruments system subroutines used in this manual.
Consult your GPIB documentation for detailed information about these and
many other subroutines that are commonly available.
Table 6–2: GPIB System Software Callable Subroutines
Subroutine
Description
DEBLK(CUR%(),CUR%(),
CNT%,8,NUMBYT%)
Convert first
CNT%
elements of array
CUR%()
from binary block
to 2-byte integer format in same array and return the number of
bytes converted.
IBFIND(BD%,BDNAME$)
Open device indicated by
BDNAME$
and return unit
descriptor
BD%
.
IBRD(BD%,RD$)
Read data from
BD%
to string
RD$
.
IBRDF(BD%,FILENAME$)
Read data from device
BD%
and store to disk in file named
<FILENAME$>
.
IBRDI(BD%,CUR%(),CNT%)
Read
CNT%
data bytes from device
BD%
into integer array
CUR%()
.
IBRSP(BD%,SPR%)
Perform serial poll of device
BD%
.
IBSRE(BD%,V%)
Enable/disable remote mode in the device indicated by
BD%
.
V%=0
disables.
IBWRT(BD%,WRT$)
Send contents of string variable
WRT$
to device indicated
by
BD%
.
IBWRTF(BD%,FILENAME$)
Send disk file named
<FILENAME$>
to device indicated
by
BD%
.
GPIB Sample Subroutines
This subsection contains a collection of subroutines that illustrate simple
approaches to transferring various types of data between the system controller
and the spectrum analyzer. You may wish to incorporate them into your own
software or modify them so they are more appropriate to your needs.
The header statements in Example 6–3 can be placed at the beginning of a
program, and be used as a basis for the subroutines in this section. If you modify
the subroutines, or add new ones, the statements may no longer be adequate.
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: ......