Reputation: 113
I am simulating a large sensor network, and I want to know if there is a way to record only some simulation results instead of all results. If yes, how to specify results I want to record. Does recording few results instead of all have an impact on the simulation time?
Upvotes: 0
Views: 740
Reputation: 7002
Using vector-recording
and scalar-recording
in omnetpp.ini
is the simplest way to control result items.
An example.
Let's assume that there are 10 hosts, and lostPackets
scalar is recorded. But we want to record this scalar only for host[2]
and host[3]
. So we can write in omnetpp.ini
:
**.host[2].somemodule1.somemodule2.lostPackets.scalar-recording = true
**.host[3].somemodule1.somemodule2.lostPackets.scalar-recording = true
**.host[*].somemodule1.somemodule2.lostPackets.scalar-recording = false
It is worth to notice, that more advanced control of recording results is available when Signal-Based Statistics are used.
It is difficult to say what is impact of recording results into simulation efficiency - it depends on many factors (e.g. how often vector entries are recorded, how many modules record items).
Upvotes: 2
Reputation: 120
You can enable and disable result and select different recording modes from the ini file.
If you have too many values in your .sca files, you can also simply filter them from the Browse Data interface (where you access all the recorded values).
Upvotes: 0