-
I want to use python code to set values to a simscape block. For example, the Rational Damper block has Parameters |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I looked into this and found that this was not possible. Most (all?) Simscape block values can only be accessed via the GUI. But you can use a workspace variable for the block parameter values and change those programmatically. Therefore, I updated the definition of the observation space to also allow for the use of workspace variables for the initial values. Check out the Simscape implementation of the cart pole environment for that! |
Beta Was this translation helpful? Give feedback.
I looked into this and found that this was not possible. Most (all?) Simscape block values can only be accessed via the GUI. But you can use a workspace variable for the block parameter values and change those programmatically. Therefore, I updated the definition of the observation space to also allow for the use of workspace variables for the initial values. Check out the Simscape implementation of the cart pole environment for that!