I want to collect all the block parameters of the multiple simulink model as per the user select the model and print it in Excel file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello All, I want to collect the parameters of Multiple Simulink Model, model must be selected by user (like using uigetfile) and print all the collected data into Excel sheet. Script should be dynamic no hard coded, your support will be appreciated. Thank you
0 commentaires
Réponses (1)
Suman
le 23 Sep 2024
Hi Aditya,
You can use the uigetfile function to select the model files for which you want to extract the parameters. Make sure the model name is same as the filename of the models.
Once you have done that, you can loop through the selected files and use the get_param function to get the model parameters as shown here: https://in.mathworks.com/help/simulink/slref/get_param.html#mw_cbf712c7-8705-428e-9a20-8b1ee41d36af
Finally, use the cell2table and writetable functions to convert the parameters cellarray to table and write that to an Excel file.
0 commentaires
Voir également
Catégories
En savoir plus sur Simulink Environment Customization 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!