Bouchra BOUNAB
Bouchra BOUNAB

Reputation: 113

Can we record only some simulation results in omnet++ instead of all simulation results?

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

Answers (2)

Jerzy D.
Jerzy D.

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

000102
000102

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).

enter image description here

Upvotes: 0

Related Questions