Changes between Initial Version and Version 1 of Tutorials/a0Basic/Tutorial3


Ignore:
Timestamp:
Sep 29, 2005, 9:58:25 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/a0Basic/Tutorial3

    v1 v1  
     1[wiki:WikiStart Orbit] > [wiki:Tutorial Tutorial] > Analyzing Measurement Results
     2
     3===== Analyzing Results =====
     4It is important to understand how measurements were collected to be able to interpret them.  The [wiki:OML ORBIT Measurement Framework] provides tools to insert points to tap available information and to effectively collect that information in a timely manner.  A number of different tools are available to interpret experimental results.  The choice of tools depends upon availability and the nature of the measurements.  Microsoft Excel can be used to analyze an experiment as shown in Figure 19 below.  Matlab can also be used.  Sample Matlab code is shown in Figure 20 and the resulting graph in Figure 21.
     5
     6Figure 19.  Usage of Microsoft Excel (page 69 of of [http://www.orbit-lab.org/doc/tutorial]).
     7
     8{{{
     9function nsf(dbServer, dbUser, dbPW, database);
     10% Part where we retrieve data from the database;
     11mysql('open',dbServer, dbUser, dbPW);
     12mysql('use', database);
     13output = struct('time',[],'thr_all',[],'node',[]);
     14[output.time, output.thr_all, output.node] = mysql('select timestamp, throughput, node_id from group2');
     15[thru1_4, time1_4, thru3_1, time3_1] = sort_mysql(output);
     16% Finally, the plotting part
     17subplot(2,1,1);
     18plot(time1_4, thru1_4, '-*');
     19title('Throughput On Obstructed Link');
     20xlabel('Time (sec)'); ylabel('Throuhput (bps)'); grid on;
     21subplot(2,1,2);
     22plot(time3_1, thru3_1, '-*');
     23title('Throughput On Monitor Node'); xlabel('Time (sec)');
     24ylabel('Throuhput (bps)'); grid on;
     25}}}
     26
     27Figure 20.  Matlab Code
     28
     29Figure 21.  Matlab Graph (see graph on page 70 of [http://www.orbit-lab.org/doc/tutorial]).
     30