MATLAB: What data type does the “Parameterization” parameter of the Rod block expect

SimscapeSimscape Driveline

What data type does the "Parameterization" parameter of the Rod block expect?
I am creating a Simscape Custom Component that contains the Simscape > Couplings & Drives > Rod block.
I keep getting errors when I try to assign the "Parameterization" parameter of the Rod block in my SSC code.

Best Answer

1) You can determine the type of a parameter using the following command:

>> get_param(h,'Parameterization')

You will find that a value of 1 means 'By stiffness and inertia' and a value of 2 means 'By material properties'.

2) You can also determine a parameter's type using the Model Explorer as shown in the attached screenshot. This way, you can change block parameters and observe the values of the underlying variables in the same place.

Notice that the Rod's parameterization parameter indicates a value of 1 when its "Parameterization" dialog parameter has been set to "By stiffness and inertia".