How do I push component changes from test harness to model library?

1 回表示 (過去 30 日間)
Ravi
Ravi 2023 年 5 月 1 日
回答済み: Vinayak 2023 年 5 月 22 日
Hi there,
I am using Simulink test for my project.
Simulink model has a few library blocks (it's a user library created by using simulink library components).
I created a test harness from Simulink Model and made changes in library blocks. I am trying to push test harness changes into my model library but I am not able to see changes.
Could you please suggest any way to do this?
Thank you.

回答 (1 件)

Vinayak
Vinayak 2023 年 5 月 22 日
To sync changes to the test harness,
  1. Open the model that contains the library you want to update, and open the library browser.
  2. In the library browser, select the library that you want to update.
  3. Right-click the library and select Source Control > Update Library from Source Control. This will update the library with the most recent changes available in the source control system.
  4. Alternatively, if you have made changes to the library blocks using the test harness, you can save the changes directly to the library by right-clicking the block in the test harness and selecting "Create Library Block". This will prompt you to select a destination library for the block. Select the library that you want to update and save the block to that library.
  5. If the library block you saved already exists in the library, you'll be prompted to overwrite it. Click "Yes" to overwrite the existing block with the new changes.

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by