SubSystem missing image in library (created with mask)

3 ビュー (過去 30 日間)
Ludo Houben
Ludo Houben 2023 年 7 月 5 日
回答済み: Ludo Houben 2023 年 8 月 24 日
Hi All
Yesterday I succesfully created a 'mask' for a referenced SubSystem within a Library I'm trying to create. Today I want to continue, but the image is NOT displayed anymore, after opening the library '*.slx' file.
When I try to open the block with 'Open <block> and Edit mask' within the library, then the 'Drawing Commands' screen is selected instead of the 'Graphical' screen, and also all info is missing. When I switch to the 'Graphical' screen, then there is only the default empty image. The image that I have created previously is missing completely, although it is still present on the stored location.
Also after 'reloading' the library, in the library browser, the image continues to be available. The image (*.svg) is saved next to the subsystem file (*.slx) and the location is added to the 'path' within MatLab. I am a 100% that I saved ALL files yesterday. Is there anybody wo has an idea of what I could have been doing wrong?
Regards,
Ludo

採用された回答

Ludo Houben
Ludo Houben 2023 年 8 月 24 日
Found that the reference within the block is 'fixed'. So after renaming / relocating you have to recreate this reference. I don't know how to do this 'properly' but I have found a workaround.
  1. Create a copy of your existing image which is not loading
  2. Within the mask create a 'new' drawing in graphical mode and save this under the desired name
  3. Close Matlab/Simulink
  4. Open the existing image within a texteditor and copy everything
  5. Open the new image (from step 2) within a texteditor and remove everything
  6. Paste the code copied from step 4 and save the file
  7. When you now open Matlab/Simulink, then the original image should be visible again.
If anybody knows were to 'find' this reference and/or to reload this, then I am still interested how to do this. Please leave an comment/answer then.
Regards
Ludo

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by