How to generate c code with joystick input?

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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

질문:

li
2024년 7월 18일

댓글:

li
2024년 7월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by