How to get property of blocks
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254746/image.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???
0 Kommentare
Antworten (1)
Fangjun Jiang
am 17 Dez. 2019
Assume your model passes model update, here is an example.
vdp;
vdp([],[],[],'compile');
get_param('vdp/Mu','CompiledPortDataTypes')
vdp([],[],[],'term');
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!