필터 지우기
필터 지우기

Update custom block image from MATLAB code

조회 수: 1 (최근 30일)
Aled
Aled 2020년 12월 9일
답변: Juan Sagarduy 2020년 12월 13일
Hi all,
I'm looking to use images in a folder on my C:drive as masks for custom blocks in a simscape library i have generated.
Everytime i update the library the mask images disappears and i have to re-attach the image from the mask editor.
Is there a specific command i can put in the source code for each block so that when i update the library it automatically reads the image and i don't have to do it manually each time.
Thanks

답변 (1개)

Juan Sagarduy
Juan Sagarduy 2020년 12월 13일
Hi Aled
As far i know, when you build the library again with a new component, it will automatically take the graphics of an equivalent graphic block.
For instance, comp1.ssc will inheritate the graphics in comp1.bmp or comp1.jpg. Both ssc and graphics shall be in the same folder.
Hope this helps Juan

카테고리

Help CenterFile Exchange에서 Creating Custom Components and Libraries에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by