Tektronix TDS 310 Sprinkler User Manual


 
Programming Examples
TDS 310, TDS 320 & TDS 350 Programmer Manual
4Ć5
The example RSĆ232 programs use the COM port of a PC. The example
RSĆ232 software includes:
MEAS: measures a parameter of an oscilloscope waveform.
COMM: shows communication between the personal computer and the oscilloĆ
scope.
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.
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.
A README file in each directory explains how to build executable code from
the source files provided.
NOTE
The programs you compile in the Sources directory may require
extra steps or changes to get them to work with your system.
Compiling and Linking Your Example QuickBASIC Programs Ċ To
make an executable for any of the following files, perform the following:
1. Install QuickBASIC.
2. Connect the oscilloscope to the COM2 port of the personal computer. Set
the oscilloscope RSĆ232 parameters to the default values.
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:\rs232\q–basic\*.* .
RSĆ232 Examples