| 1 | [wiki:WikiStart Orbit] > [wiki:Tutorial Tutorial] > Analyzing Measurement Results |
| 2 | |
| 3 | ===== Analyzing Results ===== |
| 4 | It 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 | |
| 6 | Figure 19. Usage of Microsoft Excel (page 69 of of [http://www.orbit-lab.org/doc/tutorial]). |
| 7 | |
| 8 | {{{ |
| 9 | function nsf(dbServer, dbUser, dbPW, database); |
| 10 | % Part where we retrieve data from the database; |
| 11 | mysql('open',dbServer, dbUser, dbPW); |
| 12 | mysql('use', database); |
| 13 | output = 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 |
| 17 | subplot(2,1,1); |
| 18 | plot(time1_4, thru1_4, '-*'); |
| 19 | title('Throughput On Obstructed Link'); |
| 20 | xlabel('Time (sec)'); ylabel('Throuhput (bps)'); grid on; |
| 21 | subplot(2,1,2); |
| 22 | plot(time3_1, thru3_1, '-*'); |
| 23 | title('Throughput On Monitor Node'); xlabel('Time (sec)'); |
| 24 | ylabel('Throuhput (bps)'); grid on; |
| 25 | }}} |
| 26 | |
| 27 | Figure 20. Matlab Code |
| 28 | |
| 29 | Figure 21. Matlab Graph (see graph on page 70 of [http://www.orbit-lab.org/doc/tutorial]). |
| 30 | |