How to generate c code with joystick input?

7 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Simulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by