How to generate c code with joystick input?

8 ビュー (過去 30 日間)
li
li 2024 年 7 月 18 日
コメント済み: li 2024 年 7 月 18 日
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.

採用された回答

Ruchika Parag
Ruchika Parag 2024 年 7 月 18 日
編集済み: Ruchika Parag 2024 年 7 月 18 日
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 件のコメント
li
li 2024 年 7 月 18 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by