How to use the Forwarding tables
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have changed a library structure and name. So, in the models, the library blocks don't refer to the new library (and blocks) path.
I've tried to implement the forwarding tables (as explained here) but it doesn't work. Let's suppose that the old library name is LibA and the new one is LibB. Now, a block called blk was initially in LibA/blk is now moved to LibB/Fld/blk.
Then, I add a forward table in the new library with:
set_param('LibB', 'ForwardingTable', {{'LibA/blk', 'LibB/Fld/blk'} });
When I open the model that contains the reference to the old library, I remove the LibA library from my MATLAB path and I have only the LibB. In that case, Simulink set all the blocks with unresolved links (LibA can't be found). If I add the LibA to the path, the blocks are still linked to the LibA library.
This is not important in my opinion, the library is a Simscape one. All forwarding tables have been correctly generated with the sl_postprocess script.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!