필터 지우기
필터 지우기

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 CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by