Get the port handle for the reference mode
10 views (last 30 days)
Show older comments
Hello All
Is there anyway to get the port handler for the reference model and then for Inport/Outport read the resolved signal ?
0 Comments
Answers (2)
Fangjun Jiang
on 2 Feb 2022
I would think that you porbably need to follow the Model block, open the referenced model and then get the input and output port handels and then the resolved signal object/names.
The info is saved in the referenced model. The referenced model is not loaded when barely open the top-level model.
Mohamed Hamed
on 6 Feb 2022
5 Comments
Fangjun Jiang
on 7 Feb 2022
See my original answer. Forget about the "Model" block. Open the model and start from there.
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!