필터 지우기
필터 지우기

How to read data type conversion block name using mscript

조회 수: 9 (최근 30일)
Vignesh S
Vignesh S 2023년 6월 8일
댓글: Vignesh S 2023년 6월 12일
How to read data type conversion block name using mscript
I used the below script but it was not working
Blockpaths = find_system('H217A_Power_Supply','Type','Data Type Conversion');

답변 (1개)

Srivardhan
Srivardhan 2023년 6월 9일
Hi Vignesh,
As per my understanding, you would like to read the Data type conversion block names using “find_system” function.
In MATLAB the 'find_system’ function, both ‘type’ and ‘BlockType’ are search criteria that specify the type of Simulink blocks that you want to find in the model. The difference is that ‘type’ is used to find blocks based on their generic types such as ‘Blocks’, ‘lines’ and ‘Annotations’, while ‘BlockType’ is used to find blocks on their specific types such as ‘SubSystem’ and ‘DataTypeConversion’ etc.
Here is the code script using ‘BlockType’ you can check:
load_system('mLaneGuidanceAdaptive.slx');
datatype_conver_blocks = find_system('BlockType', 'DataTypeConversion');
disp(datatype_conver_blocks);
For further reference, please check out the links to learn more about polynomial functions and symbolic scalar variables:
I hope this resolves the issue you were facing.
  댓글 수: 1
Vignesh S
Vignesh S 2023년 6월 12일
Now I am able to read the blocksets, Thanks for your response

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by