How do I find out what type of block a Simulink block is?

조회 수: 83 (최근 30일)
Michael Hodgson
Michael Hodgson 2021년 10월 7일
댓글: Michael Hodgson 2021년 10월 8일
For an assignment, the lecturer provided a sim. I know what some of the blocks are; how can I find out what the other blocks are? In other words, what type they are?

채택된 답변

Paul
Paul 2021년 10월 8일
Right click on the block. In the menu that pop-up menu, the identifier within the parentheses next to Block Parameters is the type of the block.
Or, click on the block to highlight it, and then at the the command line:
get_param(gcb,'BlockType')
Unfortunately, and this is annoying, it's not straightforward to find that block in the Simulink Libray Browser, at least in my version of Simulink. I don't know why there isn't a way to do that, similar to the Libray Link option for library blocks. Oh well. If you need to find it, you can right click on the block, click Help, and the doc page contents shows which library contains that block.

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2021년 10월 7일
What is a "sim"? If you have a Simulink model, double click the block. The block type is usually shown at the dialog window. Click "Help" button will provide you with the full document.
  댓글 수: 1
Michael Hodgson
Michael Hodgson 2021년 10월 7일
Thank you, only that doesn't work for all blocks. For example;
If I double click the Mac Plus, I get a graph.
If I double click some blocks, I get a bunch of more blocks.
If I double click some other blocks, I get a code tab open.

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

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by