Tektronix TDS 320 Sprinkler User Manual


 
Programming Examples
Programming Examples
4Ć4
copy \gpib–pc\qbib.obj .
5. Perform the following two steps for example programs:
1) Compile the program using the following command:
bc /o <file>.bas;
where <file> is one of the example program names.
To compile MEAS.BAS, (type: bc /o meas.bas;
To compile COMM.BAS, type: bc /o comm.bas;
To compile GETWFM.BAS, type: bc /o getwfm.bas;
To compile TL.BAS, type: bc /o tl.bas;
2) Link the compiled program with the qbib.obj module to create the
executable program (file.EXE) using the following command:
link <file>.obj+qbib.obj;
where <file> is one of the above program names.
To link MEAS.OBJ, type: link meas.obj+qbib.obj;
To link COMM.OBJ, type: link comm.obj+qbib.obj;
To link GETWFM.OBJ, type: link getwfm.obj+qbib.obj;
To link TL.OBJ, type: link tl.obj+qbib.obj;
The GPIBIO.BAS file is a collection of input/output routines used by
the other programs and is included for proper file compilation.
6. Run the program by typing the program name.
To run meas, type: meas
To run comm, type: comm
To run getwfm, type: getwfm
To run tl, type: tl
NOTE
The example programs disable frontĆpanel operation while they are
running, and reenable it when they terminate. If your program termiĆ
nates prematurely, frontĆpanel operation may remain disabled. To
reĆenable frontĆpanel operation, do one of the following: cycle
power on the oscilloscope, or send the GPIB command UNLOCK
ALL to unlock the front panel. You can send the UNLOCK ALL
command with the TL program included in your sample programs
disk.