Running the scripted BPSK Template

Opening the BPSKscript universe reveals the window below.

This simulation makes use of the same galaxies and stars as the BPSK universe but also includes TCL (Tool Command Language) code that runs the simulation for various values of a specified parameter. To use this template, you must first start Tycho by pressing "y" while over any facet window. Once the Tycho window opens, you may close it if you wish.

Since the facet was created in another directory than yours, you must change some of the path references. First perform edit-params ("e") on the plotForEach star and change the path so that it is the same as yours. (If you placed the examples directory in your home directory, you probably do not need to do this). To run the simulation, press "R" as usual. Again, the path for the run script must be changed to reflect the facet location. Pressing the Go button will now bring up a dialog box that specifies how the universe parameters should be modified for each run. The dialog box should like the one presented here.

This dialog box specifies that the Eb/N0 universe parameter should be modified during the simulation and allows entry of the start, step, and stop values (in dB). The "Iterations" entry specifies the number of iterations for which the simulation will run for each value of Eb/N0. Finally, the "Theoretical" entry contains a MATLAB expression for the expected performance of the system.

The simulation runs for each value of Eb/N0 and while the plotForEach.tclscript saves the last BER value associated with it. The TCL script runVsTheory.itcl also passes the Eb/N0 value to a MATLAB process which returns the theoretical BER. Once the simulation has been run for all values of Eb/N0, the script plots both the theoretical and simulated values for Eb/N0 vs. BER on the same plot.

The TCL script runForEach.itcl can be used to run the simulation for different sampling rates or, for that matter, any other universe parameter you wish to define.


John C. Sperandio <sperandi@eng.usf.edu >
Last modified: Thu Oct 9 17:38:42 EDT 1997