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?
Asked
Active
Viewed 1,523 times
5
![](../../users/profiles/1733825.webp)
aaa
- 425
- 6
- 21
3 Answers
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
![](../../users/profiles/2564892.webp)
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:
- Create a CSV file out of the OMNeT++ result files:
scavetool x *.vec -o measurements.csv
- Read the CSV files with pandas:
results = pd.read_csv('measurements.csv')
- Filter, edit, and plot the data using
pandas
,numpy
, andmatplotlib
as usual
![](../../users/profiles/2745116.webp)
CGFoX
- 2,543
- 3
- 31
- 56