필터 지우기
필터 지우기

Reducing lag caused by masked Simulink blocks

조회 수: 1 (최근 30일)
Craig
Craig 2013년 1월 14일
Hi all,
I have a problem where the images (that are actually useful) rendered on Simulink blocks seem to lag Simulink in the sense that:
1. Scrolling through the model is grindingly slow.
2. When running the model it seems to force re-render all the mask images.
I use this method:
image(imread('useful_image.jpg'));
Does anyone know of a more efficient way of doing this?
Craig
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 1월 14일
Craig: Please contact MathWorks Tech Support for this question if you don't receive a response here. Thanks!
Ryan G
Ryan G 2013년 1월 14일
How big are the image files?

댓글을 달려면 로그인하십시오.

채택된 답변

Guy Rouleau
Guy Rouleau 2013년 1월 14일
One thing I like to do is storing the image data in the block user data.
I do not guarantee it will lead to great improvement, but it will save the call to IMREAD, replacing it by a get_param of the block user data.
It will make your model file bigger, but you will not need to carry image files anymore.
As Ryan point out, always make sure the size of the image reasonnable (you do not need 1024x768 pixels for a small block)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by