How to map simulink inports to workspace signals explicitly?

1 次查看(过去 30 天)
Hello,
I am trying to build a model which has many inports. I need to map these inports explicitly (in a custom way/order) to prepared signals which are stored in the workspace.
With the available documentation about programmatic mapping as the function getRootInportMap I was not able to achieve this. getRootInportMap requires block names of inports and the corresponding signals as character strings or vectors. The problem with this method is, that it only accepts inports at the first level of the model. Subsystem-inports are not found. F.e.: " Model 'modelname' does not have a block named 'Subsystem/BasicIn1'".
Does anybody have a solution on how to access inports in deeper subsystem levels with this method or totally different method to achieve my goal?
Thanks in advance,
Florian

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by