Clear Filters
Clear Filters

How to use the Forwarding tables

3 views (last 30 days)
Thomas LE DIOURON
Thomas LE DIOURON on 12 Mar 2019
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.

Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!