Start a new topic

UDP: Communication in the Mechanism

Hello,


I'm trying to send some variables of my vehicle model to Simulink through UDP. The variables that I'm sending are: lateral velocity and yaw angular velocity. To do this I split the Linear Velocity Vector and Angular Velocity Vector into a python script (see the image below).


image


The UDP Send Network was created in the Mechanism file, since I'm performing the simulations in this file. However, this option is grayed in the explorer panel and I couldn't configure the Remote Address and Port.


image


Also, when I start the simulation in the Mechanism file the variables that I want to send via UDP are not updated in the UDP Send Properties:


image


I've already read the Network Extension documentation, but I'm still having problems.


Thanks


Hi,


I think I solved the problem. I've inserted a UDP module in the editor.vxc file and now the UDP Send in the mechanism is not grayed out anymore. I found the editor.vxc file by going to C:\CM Labs\Vortex Studio 2019a\resources\config\editor.vxc.


Thanks


1 person likes this

Hi Jose,


We are glad to hear that your problem is solved.


Cheers,

Vortex Studio Support

Login to post a comment