Looking for best approach to get a realtime simulation with a joystick into an .exe through both Matlab and Simulink

I need the following package to be made into an executable. Joystick input>writes to workspace in Matlab>writes to .exe made from Simulink model>writes to .dll that will externally give information to a flight simulator (FlightGear).
The sim can't be built with the joystick block, so I'm wondering: -Can I get joystick input to go directly to Matlab/workspace? -If so, how do I take these inputs real-time and feed them into the .exe of the model(I'm having issues using system; I can get outputs from the model, but I can't give it inputs.)
Thanks for the help!

Réponses (0)

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by