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

1 Ansicht (letzte 30 Tage)
Ravi
Ravi am 1 Mai 2023
Beantwortet: Vinayak am 22 Mai 2023
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.

Antworten (1)

Vinayak
Vinayak am 22 Mai 2023
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.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by