フィルターのクリア

How to use the Forwarding tables

3 ビュー (過去 30 日間)
Thomas LE DIOURON
Thomas LE DIOURON 2019 年 3 月 12 日
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 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by