s-function with OpenGL

1 回表示 (過去 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 Center および File ExchangeBlock and Blockset Authoring についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by