Tektronix TDS 310 Sprinkler User Manual


 
Programming Examples
Programming Examples
4Ć2
GETWFM: reads a waveform from an oscilloscope and stores its time and
voltage values in a file.
TL: a talkerĆlistener program.
Compiling the Example programs
The example programs diskette contains programs written in Microsoft QuickĆ
BASIC 4.5 and Microsoft QuickC 2.5.
Executable versions of the programs are in the PROGRAMS directory. Source
versions are in the SOURCES directory. Within this directory, the QuickBASIC
programs are in the QĆBASIC subdirectory and the QuickC programs are in
the QuickĆC subdirectory.
A README file in each directory explains how to build executable code from
the source files provided.
The QuickC directory also comes with sample MAKE files and sample executĆ
able files. These have the suffix .MAK.
If you wish to develop code, you will need to use files that come with the
GPIB system. Specifically, the QuickBASIC programs use QBDECL.BAS
and QBIB.OBJ. The QuickC programs use DECL.H and MCIB.OBJ.
NOTE
The GPIB programs you compile in the Sources directory work with
the Tektronix S3FG210 (National Instruments GPIBĆPCII/IIA) GPIB
system. It may take extra steps or changes to get them to work with
older Tektronix GURU and other GPIB systems.
Compiling and Linking Your Example QuickĆC Programs Ċ To make
an executable for any of the following files, perform the following:
1. Install QuickC. Select the SMALL memory model. Be sure to set up your
path so DOS can access the QuickĆC directory.
2. Install the Tektronix S3FG210 (National Instruments GPIBĆPCII/IIA) GPIB
board and drivers. Remember to identify the GPIB device as DEV1. This
identifier is defined using the IBCONF.EXE program.
3. Copy the files from the examples diskette to your hard disk. You might
also create a special directory to store them. For example, if the current
drive is hard disk C, you want to store the examples in drive C, and the
examples diskette is in drive B, type:
mkdir examples
cd examples
copy B:\gpib\quick-c\*.* .