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

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Prepare Model Inputs and Outputs en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Preguntada:

el 30 de Ag. de 2024

Respondida:

el 30 de Ag. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by