help_OTGplot.txt 1.01 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
 
STEP 1: 
install octave package

STEP 2:
It is possible to make OTGplot an executable Octave program by exploiting the ‘#!’ script mechanism. 
Follow these steps:
	1. make OTGplot an executable file (chmod +x OTGplot)
	2. locate your Octave interpreter (which octave)
	3. write such location in the first line of OTGplot (e.g. #! /usr/bin/octave -qf )

Then, you can directly execute OTGplot instead of passing it as argument to octave (e.g. ./OTGplot bitrate.dat 1:4).
If you want to set a title for the plot, you can use the env command: env TITLE="title" OTGplot otg_latency.dat "[1 2]"



STEP 2:
Add OTGplot_path to a user's PATH variable

    PATH=$PATH:/OTGplot_path
    export PATH


NB: Before doing simulation you should delete the following files in the case where they already exist:
rm otg_latency.dat otg.log otg_GP.dat

EXAMPLE :

# env TITLE="GoodPut (Kbis)" OTGplot otg_GP.dat [1:3]
# env TITLE="Radio Access Delay (ms)" OTGplot otg_latency.dat [1:3]
# env TITLE="One Way Delay (ms)" OTGplot otg_latency.dat [1:3]