Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Establish a connection between Simulink and SUMO using TraCI4Matlab

Hi everyone,

 

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();

/>

 

Has anyone had the same problem? Is there a solution or some references to be inspired by?

 

Waiting for your kind reply, I appreciate the opportunity to extend cordial greetings.

Francesco.

 


Back to the top