Filter löschen
Filter löschen

Viewing derived parameter in simscape in-order to debug

1 Ansicht (letzte 30 Tage)
Karthik
Karthik am 1 Jun. 2016
Beantwortet: Pavel Dey am 7 Jun. 2016
Hi,
I have some derived parameters declared in my custom component in simscape . I want to view the value in-order to check if my equations are correct. I do not want to make it variable. Is there a easy way to view the derived parameter value? Something similar to sscexplore ?

Antworten (1)

Pavel Dey
Pavel Dey am 7 Jun. 2016
I don't think there is a direct way of logging the parameters like the signals. Since you are using a custom component and the parameter is changing during the simulation, I believe it is changing based on certain input. So you may log that input signal and find out the value of the parameter by applying the same logic you have used inside the block.
Another way of getting that using a get_param method. If the parameter is a run-time parameter, you may make queries for that parameter at every time step. You may use a MATLAB function block to do that.
However, I will not recommend you to follow this method as this is a bad way of doing this. If the first method works for you, that may be better.

Kategorien

Mehr zu Troubleshooting finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by