How to get property of blocks

조회 수: 5 (최근 30일)
galaxy
galaxy 2019년 12월 17일
댓글: galaxy 2019년 12월 19일
Hi bros,
I want to know how to get property of blocks such as inport (value, data type), outport (value, data type).
Example: Following is simple model.
abs.PNG
I want to get inport data from Abs block via PortHandle, LineHandle, CompiledPortDataTypes, ext, but i could not.
Are there the way for get it for not only Abs block but also other blocks???

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2019년 12월 17일
Assume your model passes model update, here is an example.
vdp;
vdp([],[],[],'compile');
get_param('vdp/Mu','CompiledPortDataTypes')
vdp([],[],[],'term');
  댓글 수: 1
galaxy
galaxy 2019년 12월 19일
Thank you for your reply.
I know about it, but can not get the value of signal.
So I got RunTimeObject as link. It was OK
Thank you so much

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by