- 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 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Pratyush
2023년 10월 25일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!