Reputation: 19
When I run Omnet++, it loads .ini
and .ned
files, and performs a simulation and writes the results in .sca
and .vec
file.
However I want to modify the source code such that while Omnet++ is running, it loads the input files like every 100 msec and also writes the results after that interval.
How should we modify the code? Is there any other way to update .ini
and .ned
file while the simulation is in progress without changing the source code?
Upvotes: 0
Views: 794
Reputation: 6943
Both modifying a running simulation and accessing a simulation's results while it is still running are possible by writing additional model code. This code would be responsible for changing module parameters, instantiating modules on the fly, and collecting results (all in reaction to external stimuli). See this question for how to change parameters and the User Manual's Section 4.13 ("Dynamic Module Creation") and Section 4.15.6 ("Writing Result Filters and Recorders") for the latter.
Upvotes: 1