which is the right syntax with find_system and blocktype
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponses (2)
Fangjun Jiang
le 20 Juin 2022
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')
0 commentaires
Anshika Chourasia
le 22 Juin 2022
Modifié(e) : Fangjun Jiang
le 22 Juin 2022
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:
0 commentaires
Voir également
Catégories
En savoir plus sur Multibody Dynamics 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!