Please tell me how to modify simscape multibody block parameter in workspace

4 vues (au cours des 30 derniers jours)
정호
정호 le 12 Avr 2024
Réponse apportée : Raj le 12 Avr 2024
I want to edit simscape multibody block parameter in workspace.
If you use the set_param function, an error occurs saying that it is not a subsystem.
I simply want to change the actuation part of the simscape multibody block to 'provided by Input'.
If there is a way to do it, please let me know a simple one-line code.

Réponses (1)

Raj
Raj le 12 Avr 2024
To modify a Simscape Multibody block parameter from the MATLAB workspace, especially for changing the actuation mode to "provided by Input", you typically can't use set_param directly on the Simscape Multibody block because it is not treated as a simple subsystem or block with easily accessible parameters in the same way as Simulink blocks.
The 'set_param' function on the other hand can be used on Simulink model, subsystem, library, block, line, port, or bus element port element to set the specified value. Refer to the documentation below for better understanding-
I hope this solves your query.

Catégories

En savoir plus sur Simscape Multibody 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