Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Performing simulation for sumo when time step = 20s via traci4matlab

Dear Lawrence. 

traci.simulationStep simulates until the specified time step given in milliseconds. Therefore, your command should look like this:


Best Regards.

2017-09-24 11:00 GMT-05:00 <sumo-user-request@xxxxxxxxxxx>:
Send sumo-user mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sumo-user digest..."

Today's Topics:

   1. Performing simulation for sumo when time step = 20s via
      traci4matlab (Lawrence Soon via sumo-user)


Message: 1
Date: Sun, 24 Sep 2017 14:05:46 +0000
From: Lawrence Soon via sumo-user <>
To: ""
Subject: [sumo-user] Performing simulation for sumo when time step =
        20s via traci4matlab

Content-Type: text/plain; charset="us-ascii"

Hi all,

I tried to perform traci simulation in every 20 seconds from 1s to 1001s via traci4matlab using the below codes in MATLAB , yet it wont work, the sumo simulation ends at 0s (not even started). I wish to run my code at 1s, 21s, 41s, 61s, ..., 1001s in MATLAB (only for codes), bu in SUMO, the simulation time to run per second basis in sumo. In other words, the SUMO runs every second, but I m collecting the data via my MATLAB codes in even 20 seconds.

How to make the code works?

for t=1:50      %Loop 50 times for ever 20 seconds
     traci.simulationStep(20);  %set timestep = 20s

     <something else>

Thank you

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
sumo-user mailing list


sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

End of sumo-user Digest, Vol 3, Issue 42

Andres Felipe Acosta Gil, M.Sc.
Software Developer
Universidad Nacional de Colombia - Medellín
Facultad de Minas
Tel: +57 (4) 4255092
Institutional e-mail: afacostag@xxxxxxxxxxx

Back to the top