rapid accelerator issues for simscape standalone deployment
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Yash
2023-9-29
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Operators 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!