rapid accelerator issues for simscape standalone deployment
1 view (last 30 days)
Show older comments
Hello,
i am currently developping an appdesigner app with a simulink model running in background.
This simulink model features simscape thermal model blocks.
When i am trying to deploy my app in standalone mode i have compilation problem because is says that simscape datalogging doen't support rapid acceleratore mode. However it is only possible to deploy in rapid accelerator mode and if i turn off the data logging i don't get anymore results.
Do you now if it is possible to get my temperature results by an other way than data logging or if there is a special case to deploy simscape application in standalone?
Sincerly,
0 Comments
Answers (1)
Yash
on 29 Sep 2023
Hi Benjamin,
I understand that you are facing compilation issues with data logging in Simscape when using App Designer.
As you are unable to perform data logging in Simscape due to the compilation errors, an alternative approach is to save the data to the base workspace using the "To Workspace" block.
Suppose the output variable name is ‘var’ and the data type is 'timeseries', you can access and plot these values in your app using App Designer by following these steps:
1. Run the simulation using the ‘sim’ function:
simout = sim('model.slx');
2. Plot the data in your app's UIAxes using the output variable from the simulation:
plot (app.UIAxes,simout.var.Time, simout.var.Data)
By following these steps, you should be able to access and plot the values from the simulation in your App Designer app.
Hope this helps.
Best Regards
Yash
0 Comments
See Also
Categories
Find more on Nonlinear Operators in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!