Now the problem is that i built an exe file using 'rtwbuild' or 'slbuild' functions, but running this exe file doesnt pass any data to Flight Gear. The aircraft model in Flight Gear remains static.
any ideas???? but please keep it simple.... i m close to end this work and can't afford major changes.
Thanks.
Joerg
The Flightgear v1.9.1b interface works correctly for me (Matlab R2009b) in Normal and Accelerator Modes. There is a caveat that the flightgear embedded interface block does not support deployable code (e.g. I assume deployable means an executable form of the model).
However, the interface also works in xPC target by replacing the UDP send block within the Flighgear interface block, with the xPC UDP Send block. Perhaps there is an equivalent/similar solution for your target platform.
In my model I used the Pack net_fdm block of the Aerospace Blockset and the UDP Send block of the Signal Processing Blockset (both of which produce deployable code) and the standard grt target to generate a standalone exe that talks to Flightgear. Upon execution the exe asked for a few dlls that I found in the Matlab directories and copied into the exe's directory to make it run without Matlab/Simulink in the background. Then I wrote a nice little Visual Basic program that reads the joystick every millisecond and sends the current value via UDP to the UDP Receive block of the signal processing blockset in my model. Deployable "real-time" is assured by the corresponding block of Guy Rouleau:
http://www.mathworks.com/matlabcentral/fileexchange/21908-simulink%C2%AE-real-time-execution
Gives me a real-time standalone simulator based on my Simulink model. :-)