Insetting the SimMechanics Visualization Window into GUI

I have a Simulink model, and I want have to run in a space in the GUI itself (without other windows opening). Is this possible? If so, how exactly? Right now I just have: actuatedSevenElementFreeBody sim('actuatedSevenElementFreeBody')
Which opens the file, and then runs the simulation, but this opens a new window and all, and doesn't run within the GUI.
If this isn't possible, I am considering creating an .avi of the simulation and then running that via the ActiveX WMP space of my GUI. To do this though, I need to have "Simulation > Store in AVI file" checked by default. How do I force this to be checked when a user runs the simulation?
Thanks.

댓글 수: 1

If you are talking about insetting the SimMechanics Visualization Window into your custom GUI, please update your question to say so. The title "Run Simulink model simulation in GUI" is misleading. Unfortunately, I don't have much experience with SimMechanics, but a better title might catch someone's attention.

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

답변 (1개)

Guy Rouleau
Guy Rouleau 2011년 3월 9일

1 개 추천

If Kausthuba's interpretation of your questions is correct, the answer is NO. The SimMechanics visualization is not compatible with MATLAB GUI.
In the SimMechanics visualization window, there is a save button. This save button should save the settings you configure for the visualization.

댓글 수: 1

Kaustubha is correct, I will update that.
With that said, how can I have "Store in AVI file" by default? Since I can't display the simulation live, I'd like to output it to an avi and then show the avi in the GUI.
Thanks.

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

카테고리

도움말 센터File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

질문:

2011년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by