rapid accelerator issues for simscape standalone deployment

조회 수: 8 (최근 30일)
benjamin coeloh gaspar
benjamin coeloh gaspar 2022년 1월 21일
답변: Yash 2023년 9월 29일
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,

답변 (1개)

Yash
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

카테고리

Help CenterFile Exchange에서 Run-Time Parameters에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by