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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Inputs 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by