Recording a GUI from simulink

I have implemented a GUI in simulink which takes values from simulink and through a msfcn function block update values of a GUI I am displaying with changing colors, values etc. This GUI is made of several handle objects. My question is: is it possible to record this in simulink with the "to multimedia block"? Like adding an output to my msfcn function block and this ouput to the record. I have been trying difefrent solutions, but I am always getting errors, as if the output does not exist, or is only 1 dimensional...Thank you

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2011년 9월 30일

0 개 추천

Do you mean that you want to capture some plot from your GUI to a video file? Then using the functions getframe and addframe in your MATLAB-file S-function block is more appropriate.
Virginia
Virginia 2011년 10월 4일

0 개 추천

Hi! thanks for the reply. Indeed I have been trying to use the addframe and getframe, but looks like it is recording other graph an not the gui, and also giving errors about dimensions, like if after the getframe I have a 1x3 variable

댓글 수: 1

Kaustubha Govind
Kaustubha Govind 2011년 10월 4일
Are you passing in the handle to the right figure? Also, it's not clear what you mean by "if after the getframe I have a 1x3 variable". Perhaps you should try the addframe/getframe technique outside of Simulink with a simple plot to make sure you understand it correctly. You can also start another discussion on MATLAB Answers if you have questions specific to addframe/getframe so that non-Simulink users who are more familiar with MATLAB can weigh in.

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

카테고리

도움말 센터File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

질문:

2011년 9월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by