How can i send data from App Designer to a Simulink model that has masks?

3 次查看(过去 30 天)
I am working on a Simulink model in which there are masks to enter the parameters needed to simulate this model. I have been asked to develop an application for this model on App Designer. Specifically, the application must take the parameters entered on an excel file (which are the same as those in the masks) and pass them to the simulink model. I was able to pass the parameters from excel to App designer, but then I am not able to pass this data to the simulink model. How can I do this?
(P.S. It has been suggested that I pass them to InitFCN so that I don't have to delete the masks)

回答(1 个)

Ramtej
Ramtej 2023-12-7
编辑:Ramtej 2023-12-7
Hi Arianna,
I assume you are trying to set the mask paramters using your App.
You can achieve this programmatically by utilizing the "set_param" function. For detailed instructions on how to control masks programmatically, please refer to the following documentation.
Hope this helps!!

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by