How can we read programatically the Alias Data Type of a signal line that get displayed in Information OverLays

 채택된 답변

To access “aliasDataType” on the signal-line, you could use “get_param” function on the specific block connected in the signal, following example illustrates using “vdp” model:
```
vdp([], [], [], 'compile');
d = get_param('vdp/Product','CompiledPortDataTypes');
vdp([], [], [], 'term');
disp(d. Inport{1});
```
For information on programmatic access of other properties refer: https://www.mathworks.com/help/simulink/slref/common-block-parameters.html

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2024년 8월 30일

답변:

2024년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by