EasyManua.ls Logo

Tektronix TDS5000B Series

Tektronix TDS5000B Series
917 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TDS5000B Online Programmer Guide
-- 8 6 9 --
Compiling GPIB Programs
The example GPIB programs make the following assumptions:
H The GPIB controller board is ”GPIB0” (board 0). If you have more
than one GPIB controller in your workstation, and you want to user
a GPIB controller other than board 0, you must edit the source files
accordingly.
H The instrument is connected to the GPIB controller (see above) and
is set to address 1 (DEV1). If you want to use another address, then
you must edit the source files accordingly.
Each program requires adding the following source files to the associat-
ed VC++ project (which you will create).
H GPIBERR.C
H GPIBREAD.C
H GPIBWAIT.C
H GPIBWRIT.C
In addition to the above source files, you will also need to add the fol-
lowing files provided by National Instruments:
H decl--32.h
H gpib--32.obj
Visual C++
To make an executable for any of the example programs in the Source
directory, perform the following steps:
1. Install Microsoft Visual C
++
, Version 6.0.
2. Install the National Instruments GPIB board and drivers.
3. Copy the following source files from your National Instruments
GPIB drivers directory to this directory (”Examples\Source”):
H decl--32.h
H gpib--32.obj
4. Create a new ”Win32 Console Application” project in Visual C++
located in this directory (”Examples\Source”). For example, if you
want to build the Talker/Listener application, select this directory
for the location, and enter a suitable name for the project, such as
TL.
5. Add the following Visual C++ source files to the project:
H ..\GPIBERR.C
H ..\GPIBREAD

Table of Contents

Other manuals for Tektronix TDS5000B Series

Related product manuals