Simulation Time

1,422 views
Skip to first unread message

Mohammad Arouri

unread,
Jan 22, 2010, 12:16:58 PM1/22/10
to omn...@googlegroups.com
Hi All ..
Am new to omnet and may be my question is simple, but i really need its answer.
How i can change the simulation time in omnet.
i need to change it, to make it reflects the timing of the real case am working on
Thanks

Rudolf Hornig

unread,
Jan 22, 2010, 4:27:13 PM1/22/10
to omn...@googlegroups.com
You cannot. The advancement of the simulation time is handled by the OMNET kernel (you cannot change the time in the real world either :) ). You can schedule events / messages into the future to arrive at certain gates of certain modules, but the incrementing of simtime will be handled by the kernel.

Rudolf
 

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.

Mohammad Arouri

unread,
Jan 22, 2010, 4:50:53 PM1/22/10
to omn...@googlegroups.com
Thank you Hornig, i used the function scheduleAt(time,event) to move the timing of the simulation, and this solved my problem, so thanks again
--
M.Arouri

zahian ismail

unread,
Jan 23, 2010, 9:04:33 PM1/23/10
to omn...@googlegroups.com
hi,
 
as Rudolf replied;
 
"You cannot. The advancement of the simulation time is handled by the OMNET kernel (you cannot change the time in the real world either :) ). You can schedule events / messages into the future to arrive at certain gates of certain modules, but the incrementing of simtime will be handled by the kernel.

Rudolf"
 
for my simulaiton,
i have set the simulation time limit like this:
 
sim-time-limit
= 3000seconds
 
the simulation did not stop after 3000s.
so i choose the express mode for simulation.
does this will affects the simulation result?
 
thank you.
Zahian Binti Ismail
Network Management Group
Department of Computer Science
Faculty of Information Science & Technology
Universiti Kebangsaan Malaysia
43600 Bangi
Selangor
Tel: 03-89216657

Anas N. Mousa

unread,
Jan 24, 2010, 4:19:29 AM1/24/10
to omnetpp
Hi Zahian,

No, using Express running mode will not affect the results; it just
fasten the run of the simulation by disabling almost all graphical
details that shows the progress of the simulation (everything but the
inspectors by default, unless you choose to disable the update of the
inspectors)......

so, it's just to run the simulation much faster......

regards,

On Jan 24, 4:04 am, zahian ismail <zahianism...@gmail.com> wrote:
>  hi,
>
> as Rudolf replied;
>
> "You cannot. The advancement of the simulation time is handled by the OMNET
> kernel (you cannot change the time in the real world either :) ). You can
> schedule events / messages into the future to arrive at certain gates of
> certain modules, but the incrementing of simtime will be handled by the
> kernel.
>
> Rudolf"
>
> for my simulaiton,
> i have set the simulation time limit like this:
>
> sim-time-limit = 3000seconds
>
> the simulation did not stop after 3000s.
> so i choose the express mode for simulation.
> does this will affects the simulation result?
>
> thank you.
> On Sat, Jan 23, 2010 at 5:50 AM, Mohammad Arouri

> <mohammadaro...@gmail.com>wrote:


>
>
>
> > Thank you Hornig, i used the function scheduleAt(time,event) to move the
> > timing of the simulation, and this solved my problem, so thanks again
>

> > On Fri, Jan 22, 2010 at 11:27 PM, Rudolf Hornig <rudolf.hor...@gmail.com>wrote:
>
> >>   On Fri, Jan 22, 2010 at 6:16 PM, Mohammad Arouri <

> >> mohammadaro...@gmail.com> wrote:
>
> >>> Hi All ..
> >>> Am new to omnet and may be my question is simple, but i really need its
> >>> answer.
> >>> How i can change the simulation time in omnet.
> >>> i need to change it, to make it reflects the timing of the real case am
> >>> working on
> >>> Thanks
>
> >> You cannot. The advancement of the simulation time is handled by the OMNET
> >> kernel (you cannot change the time in the real world either :) ). You can
> >> schedule events / messages into the future to arrive at certain gates of
> >> certain modules, but the incrementing of simtime will be handled by the
> >> kernel.
>
> >> Rudolf
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "omnetpp" group.
> >>> To post to this group, send email to omn...@googlegroups.com.
> >>> To unsubscribe from this group, send email to

> >>> omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>


> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/omnetpp?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "omnetpp" group.
> >> To post to this group, send email to omn...@googlegroups.com.
> >> To unsubscribe from this group, send email to

> >> omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>


> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/omnetpp?hl=en.
>
> > --
> > M.Arouri
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.
> > To post to this group, send email to omn...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>

Rudolf Hornig

unread,
Jan 24, 2010, 10:39:57 AM1/24/10
to omn...@googlegroups.com
sim-time-limit3000seconds

Seconds is definitely not a valid unit. Use s instead.
The simulation should stop correctly after 3000s. If not then this is a bug. Please provide your INI file and ned file and report the bug.

Rudolf

zahian ismail

unread,
Jan 24, 2010, 8:42:02 PM1/24/10
to omn...@googlegroups.com
thanks anas.
 
means 3000s in simulation is not the same as 3000s in real time.

To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.

zahian ismail

unread,
Jan 24, 2010, 8:55:22 PM1/24/10
to omn...@googlegroups.com
hi rudolf,
 
i've attached the INI file and ned file.
for the simulation i applied inetmanet framework.
 
thank you.

On Sun, Jan 24, 2010 at 11:39 PM, Rudolf Hornig <rudolf...@gmail.com> wrote:
sim-time-limit3000seconds

Seconds is definitely not a valid unit. Use s instead.
The simulation should stop correctly after 3000s. If not then this is a bug. Please provide your INI file and ned file and report the bug.

Rudolf
On Sun, Jan 24, 2010 at 3:04 AM, zahian ismail <zahian...@gmail.com> wrote:
hi,
 
as Rudolf replied;
 
"You cannot. The advancement of the simulation time is handled by the OMNET kernel (you cannot change the time in the real world either :) ). You can schedule events / messages into the future to arrive at certain gates of certain modules, but the incrementing of simtime will be handled by the kernel.

Rudolf"
 
for my simulaiton,
i have set the simulation time limit like this:
 
sim-time-limit
= 3000seconds
 
the simulation did not stop after 3000s.
so i choose the express mode for simulation.
does this will affects the simulation result?
 

--
Zahian Binti Ismail

NED-file.txt
INI-file.txt

Rudolf Hornig

unread,
Jan 25, 2010, 2:56:20 AM1/25/10
to omn...@googlegroups.com
Ah ok... You were expecting to run your simulation for 5 minutes?

If you want to limit your simulation in real-time, use:

cpu-time-limit=3000seconds

Simulation time and real (wall clock) time are not the same thing.

Rudolf

zahian ismail

unread,
Jan 25, 2010, 3:16:26 AM1/25/10
to omn...@googlegroups.com
again.
 
thank you so much rudolf..

Reply all
Reply to author
Forward
0 new messages