필터 지우기
필터 지우기

How to add real time graph in simulink 3D animation?

조회 수: 3 (최근 30일)
HJ Jay
HJ Jay 2015년 9월 13일
편집: Jan Houska 2015년 9월 15일
I would like to implement something like, http://www.mathworks.com/examples/3d-animation/1771-vehicle-dynamics-visualization-with-graphs. It uses an s function vr_octavia_graphs to accomplish this but it isn't accessible.(mask) How can I customize this for my application or put a new one together?

답변 (2개)

Mike Garrity
Mike Garrity 2015년 9월 14일
This blog post illustrates one way to use MATLAB Graphics from a Simulink simulation. There are several other approaches. This one's using what's called a Level-2 MATLAB S-Function.
The actual MATLAB Graphics to draw the double pendulum in that example probably aren't what you want. You'd probably want to replace it with something like one of the animatedline examples.
  댓글 수: 1
HJ Jay
HJ Jay 2015년 9월 14일
Thanks for your answer but I'm not able to connect your solution with my application. Simulink 3D animation uses VRML to model 3D objects which I can control from simulink. In the link I posted in the question, I feel that they have somehow embedded the VRML window that visualizes the simulation in matlab figure along with graphs, and there is absolutely no documentation about it.

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


Jan Houska
Jan Houska 2015년 9월 15일
편집: Jan Houska 2015년 9월 15일
The S-function in the vr_octavia_graphs example is masked, but it is still accessible. Doing Look under mask on the block reveals the implementation - a S-function named octavia_graphs, written as MATLAB program.
So "edit octavia_graphs" opens the example S-function in editor and you should be able to start from there.

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by