Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Sumo and Simulink

Hello,


I would like to implement a Matlab Function block in a Simulink model that uses the TraCI4Matlab commands to establish a connection with SUMO. The problem is that TraCI commands are not recognized by Simulink, and it gives me many errors during compilation.

 

TraCI commands, on the other hand, only work in a Matlab script, but I would like to use them in my Simulink model.

 

I am currently using these commands to establish a connection within the Matlab Functional block:

 

< system(['sumo-gui -c ' '.\Config_file.sumocfg --remote-port 8813 --start&']);

traci.init();

/>

 

Is there a solution or some references to be inspired by?


Thanks,

Mehmet



Back to the top