OMNET++ Log functions

419 views
Skip to first unread message

Mickey Friedmann

unread,
Oct 11, 2009, 6:09:41 PM10/11/09
to omnetpp
Good Day folks.
Was wondering if anyone could tell me if OMNET++ supports replaying
parts of the simulation from the Log files.
For example: if you've ran a simulation and received a Log file, could
you possibly use the Log file to show the simulation (or parts of it)
running graphically?
If this function is possible, could you please tell me how it's done
(or point me to a similar example)?

Thanx a million,
M. Friedmann

Patrick Haeflinger

unread,
Oct 12, 2009, 4:34:28 AM10/12/09
to omn...@googlegroups.com
Hi,

As far as I know this is NOT possible, if your simulation shows some
errors at a given simulation time you have to run it again in the
graphical environment and for example use the "run until" to simulate
fast until close to your error and then continue interactively on a step
basis

Hope this helps

Patrick

Mickey Friedmann a écrit :

Mickey Friedmann

unread,
Oct 12, 2009, 5:07:29 AM10/12/09
to omnetpp
Thank you very much, Patrick.
Does anybody else know if this is possible?


On 12 אוקטובר, 10:34, Patrick Haeflinger <patrick.haeflin...@alcatel-
> >  M. Friedmann-הסתר טקסט מצוטט-
>
> -הראה טקסט מצוטט-

Rudolf Hornig

unread,
Oct 12, 2009, 5:30:08 AM10/12/09
to omn...@googlegroups.com
Well, we have been thinking about that feature, but of course, you cannot store the whole state of your simulation at each event, so the playback would be limited to the graphical representation only (i.e. inspecting variables, statistics would not be possible). The playback feature will be implemented only, when we move to java based runtime environment (implementing it in the current TKenv is not feasible)...

If you want to create a demonstration without delivering the real simulation, at the moment I recommend some kind of screen capturing...

On the bright side: omnet is already prepared to dump all log information that would be required to create such a player. The log format is documented, so it is possible to implement a player in any language you wish if you need it badly...

We are already using this log (called event log) in our sequence chart view which is a kind of playback tool already. (it just does not deal with appearance changes (ie ignores the display string changes) and uses the horizontal dimension as time dimension, so you can follow the message passing in a diagram... If you want to debug your simulation/protocol I highly recommend to check it... It is more suitable to find issues in a protocol than a simple playback program...

Rudolf

Mickey Friedmann

unread,
Oct 12, 2009, 6:20:12 AM10/12/09
to omnetpp
Thank you guys for the complete and thorough answers.
Your answers have been very helpfull.
Mickey

On 12 אוקטובר, 11:30, Rudolf Hornig <r...@omnetpp.org> wrote:
> Well, we have been thinking about that feature, but of course, you cannot
> store the whole state of your simulation at each event, so the playback
> would be limited to the graphical representation only (i.e. inspecting
> variables, statistics would not be possible). The playback feature will be
> implemented only, when we move to java based runtime environment
> (implementing it in the current TKenv is not feasible)...
> If you want to create a demonstration without delivering the real
> simulation, at the moment I recommend some kind of screen capturing...
>
> On the bright side: omnet is already prepared to dump all log information
> that would be required to create such a player. The log format is
> documented, so it is possible to implement a player in any language you wish
> if you need it badly...
>
> We are already using this log (called event log) in our sequence chart view
> which is a kind of playback tool already. (it just does not deal with
> appearance changes (ie ignores the display string changes) and uses the
> horizontal dimension as time dimension, so you can follow the message
> passing in a diagram... If you want to debug your simulation/protocol I
> highly recommend to check it... It is more suitable to find issues in a
> protocol than a simple playback program...
>
> Rudolf
>
> On Mon, Oct 12, 2009 at 11:07 AM, Mickey Friedmann <mike.friedm...@gmail.com
>
>
>
> > wrote:
>
> > Thank you very much, Patrick.
> > Does anybody else know if this is possible?
>
> > On 12 אוקטובר, 10:34, Patrick Haeflinger <patrick.haeflin...@alcatel-
> > lucent.fr> wrote:
> > > Hi,
>
> > > As far as I know this is NOT possible, if your simulation shows some
> > > errors at a given simulation time you have to run it again in the
> > > graphical environment and for example use the "run until" to simulate
> > > fast until close to your error and then continue interactively on a step
> > > basis
>
> > > Hope this helps
>
> > > Patrick
>
> > > Mickey Friedmann a écrit :
>
> > > > Good Day folks.
> > > > Was wondering if anyone could tell me if OMNET++ supports replaying
> > > > parts of the simulation from the Log files.
> > > > For example: if you've ran a simulation and received a Log file, could
> > > > you possibly use the Log file to show the simulation (or parts of it)
> > > > running graphically?
> > > > If this function is possible, could you please tell me how it's done
> > > > (or point me to a similar example)?
>
> > > > Thanx a million,
> > > >  M. Friedmann-הסתר טקסט מצוטט-
>
> > > -הראה טקסט מצוטט--הסתר טקסט מצוטט-
>
> -הראה טקסט מצוטט-
Reply all
Reply to author
Forward
0 new messages