Tektronix TDS 320 Sprinkler User Manual


 
Programming Examples
Programming Examples
4Ć6
4. Perform the following two steps for example programs:
1) Compile the programs using the following commands:
bc /o <file>.bas;
bc /o /v rs232io.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 rs232io.obj module to create the
executable program (file.EXE) using the following command:
link <file>.obj+rs232io.obj;
where <file> is one of the above program names.
To link MEAS.OBJ, type: link meas.obj+rs232io.obj;
To link COMM.OBJ, type: link comm.obj+rs232io.obj;
To link GETWFM.OBJ, type: link getwfm.obj+rs232io.obj;
To link TL.OBJ, type: link tl.obj+rs232io.obj;
The rs232IO.BAS file is a collection of input/output routines used by
the other programs and is included for proper file compilation.
5. 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