Is the loaded variable from workspace into simulink model will be automatically deployed to raspberry Pi?

Hello everybody,
I am doing the project on deploy simulink model into the Raspberry Pi board. I can run this simulink model with Gazebo that utillize the ROS /odom subscriber and /cmd_vel publisher. But when I deployed the simulink model into the Raspberry Pi and run the execuable file Its seem that there is nothing running between raspberry pi and gazebo. Therefore, I think about maybe if the simulink model that require the variable data from workspace from MATLAB (Usually, I have to load the variable everytime I want to run the simulink model with Gazebo) did not automatically deployed with the model. Before I deployed simulink model into Raspberry Pi, I have run the simulink model which i already loaded the variable into the simulink model. By the way, I deployed the simulink model to be C++.
The variable that have to be used
The simulink model
If the variable did not automatically loaded with simulink model How can I deploy or fixed this problem.
Thank you so much in advance for your help.

1 Comment

Hi,
Can you please share the simplified model of Simulink to reproduce the issue on our end ?
Thanks,
Jagadeesh K.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 22 Nov 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!