Are the grayed-out tire parameter fields in the "Combined Slip Wheel 2DOF" block closed-source, and if not, how can they be accessed?

조회 수: 5 (최근 30일)
Hello,
I was looking into the block "Combined Slip Wheel 2DOF" and I noticed that selecting predefined models like "Light passenger car 205/60R15" or "Mid-size passenger car 235/45R18" results in most tire parameter fields being grayed out, with only a few editable unless the "load from external file" option is selected. Are these fields grayed out because the models are closed-source, and the parameter values are not publicly accessible? If they are publicly available, is there a way to access these values?

답변 (1개)

Manish
Manish 2025년 1월 29일
편집: Manish 2025년 1월 31일
Hi Kenneth,
I understand that you want to access the grayed-out tire parameters for the 'Combined Slip Wheel 2DOF' block.
This can be achived by the following steps:
  1. Save the model with specific model name.
  2. Create a variable in MATLAB and store the block path.
  3. Use the 'get_params' function,specifying the block path and attribute.
Here is the sample code:
%blockPath='your_model_name/your_block_name'
blockPath = 'car/Combined Slip Wheel 2DOF'; % my_model_name=car
%Parameter_value = get_param(blockPath, 'attribute_name')
Parameter_value=get_param(blockPath, 'LONGITUDINAL_STIFFNESS');
The grayed-out parameters have different attributes. For example, the 'Structural' category includes the 'LONGITUDINAL_STIFFNESS' attribute. These attributes are used in the code and can be found on the documentation page.
Refer the below documentation links for better understanding:
Hope it helps!

카테고리

Help CenterFile Exchange에서 Tires and Vehicles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by