s-function with OpenGL

3 views (last 30 days)
Natalia
Natalia on 28 Apr 2011
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.

Accepted Answer

Jan Houska
Jan Houska on 29 Apr 2011
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 Comment
Natalia
Natalia on 29 Apr 2011
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.

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!