- Open your Simulink model.
- Run a simulation of the model.
- Open the Simulation Data Inspector by typing Simulink.sdi.view in the MATLAB command window.
- In the Simulation Data Inspector window, click on the "Signals & Parameters" tab.
- Under the "Signals" section, you will find the list of observable signals. The number of observable signals is displayed at the bottom of this section.
- Under the "Parameters" section, you will find the list of tunable parameters. The number of tunable parameters is displayed at the bottom of this section.
How can I get the number of tunable parameters and number of observable signals in a Simulink model?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I get the number of tunable parameters and number of observable signals in a Simulink model? This used to be accomplished by:
tg = slrt;
tg.NumParameters
tg.NumSignals
But this has changed in the latest version of Matlab. There isn't any documentation on what these might have changed to.
0 commentaires
Réponses (1)
Pratyush
le 25 Oct 2023
Hi Jeffrey,
I understand that you want to get the tunable parameters and the observable signals in a Simulink model.
You can use Simulink Real-Time Explorer for it. You can refer to the following link for more details on Simulink Real-Time Explorer: https://in.mathworks.com/help/slrealtime/ref/simulinkrealtimeexplorer-app.html
Here's how you can do it:
Hope this helps.
Voir également
Catégories
En savoir plus sur Target Computer Setup 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!