How to generate c code with joystick input?

4 Ansichten (letzte 30 Tage)
li
li am 18 Jul. 2024
Kommentiert: li am 18 Jul. 2024
I put .mex file but doesnt work: Cannot find S-function module 'joyinput'. S-Function modules must exist as either source files or pre-compiled object files on the MATLAB path.

Akzeptierte Antwort

Ruchika Parag
Ruchika Parag am 18 Jul. 2024
Bearbeitet: Ruchika Parag am 18 Jul. 2024
Hi Li, you are obtaining that error because the "Joystick Input" block is not code generable. This means you cannot generate code or an S-function for the "Joystick Input" block or any subsystem containing this block. However, it is possible to associate the "Joystick Input" block with a joystick connected to and recognized by your computer. Hope this helps!
  1 Kommentar
li
li am 18 Jul. 2024
thanks, do you know some alternative solutions that may help?
I try to write s-function with winmm.dll but it doesnt provide force feedback

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by