s-function with OpenGL

조회 수: 3 (최근 30일)
Natalia
Natalia 2011년 4월 28일
Hello!
I have decided to try to use OpenGL for visualization, have followed an example from the textbook (for this purpose it is not required any additional installation). Source file of the exemple http://depositfiles.com/files/6wju89zqr This example doesn't work for all or only at me? I use mex -g test_vis.cpp user32.lib gdi32.lib glu32.lib opengl32.lib
But I have the error "Matlab.....must be closed", when I try to paste the name of mex-file in the s-function block in Simulink.

채택된 답변

Jan Houska
Jan Houska 2011년 4월 29일
You may want to try the Simulink 3D Animation product. It can save you from low-level tasks like this. There is a demo version of this product included with Simulink, so you should be able to try it right away.
  댓글 수: 1
Natalia
Natalia 2011년 4월 29일
Thanks big for the answer :)
I have a difficult control system of plane.... How quickly will it work? Also I have the model of the plane in 3ds max...
And still I have an engineering interest to interaction simulink and opengl. It would be desirable to see a small and simple example of interaction simulink and opengl.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by