which is the right syntax with find_system and blocktype

조회 수: 5 (최근 30일)
borzack
borzack 2022년 6월 17일
편집: Fangjun Jiang 2022년 6월 22일
Hello,
my model includes Gain and Weld Joint,
so
find_system(gcs,'SearchDepth',1,'BlockType','Gain')
ans =
1×1 cell array
{'untitled/Gain'}
while
find_system(gcs,'SearchDepth',1,'BlockType','sm_lib/Joints/Weld Joint')
ans =
0×1 empty cell array
someone know why?

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2022년 6월 20일
Using 'sm_lib/Joints/Weld Joint' for block type is incorrect. To find it out, do it manually first. Select the block, run get_param(gcb,'BlockType')

Anshika Chourasia
Anshika Chourasia 2022년 6월 22일
편집: Fangjun Jiang 2022년 6월 22일
Hi,
The correct Block Type for Weld Joint is “SimscapeMultibodyBlock”.
Please use the following line of code for Weld Joint
find_system(gcs,'SearchDepth',1,'BlockType','SimscapeMultibodyBlock')
Please refer to the following link for more information related to the loading system and their blocks information:

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by