5

I have run a VEINS/OMNET++ simulation using Cmdenv. Usually I used OMNET++ IDE to run simulation and would analyze the results within IDE. But now the results are on a server, is there any easier(convenient) way to analyze the results without importing it into OMNET++ IDE?

aaa
  • 425
  • 6
  • 21

3 Answers3

6

There are various ways to analyze results without relying on the IDE.

  • One example would be to use R and the omnetpp Package. There is also an extensive tutorial explaining how to install and use the package.
  • Another way could be to write a parser for .scaand .vecfiles in Python and then analyze the files using SciPy.
floxyz
  • 686
  • 4
  • 9
2

The best solution is to write an R script using omnetpp package, this is what i am currently doing, for the same purpose.

Under your server you can install R, then run the script with Rscript command

HanniBaL90
  • 356
  • 2
  • 15
0

There is an excellent tutorial on how to analyze and plot OMNeT++ results using Python: https://docs.omnetpp.org/tutorials/pandas/

Essentially:

  1. Create a CSV file out of the OMNeT++ result files: scavetool x *.vec -o measurements.csv
  2. Read the CSV files with pandas: results = pd.read_csv('measurements.csv')
  3. Filter, edit, and plot the data using pandas, numpy, and matplotlib as usual
CGFoX
  • 2,543
  • 3
  • 31
  • 56