s-function with OpenGL

3 visualizzazioni (ultimi 30 giorni)
Natalia
Natalia il 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.

Risposta accettata

Jan Houska
Jan Houska il 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 Commento
Natalia
Natalia il 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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Block and Blockset Authoring in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by