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

3 vues (au cours des 30 derniers jours)
Arianna Nazzarelli
Arianna Nazzarelli le 6 Déc 2023
Modifié(e) : Ramtej le 7 Déc 2023
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)

Réponses (1)

Ramtej
Ramtej le 7 Déc 2023
Modifié(e) : Ramtej le 7 Déc 2023
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!!

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by