adafruit V2 shield error

조회 수: 1 (최근 30일)
Dominique Rousset
Dominique Rousset 2023년 5월 17일
댓글: Dominique Rousset 2023년 5월 30일
Hello,
I work on a project with arduino and adafruit shield V2 . I want to control 4 DC motors with this shield.
In a derictory, i put all .cpp and .h files
In command line, I control all motors
I try this simulink model
and get this error
### Starting build procedure for: afmotor_v21
### Build procedure for afmotor_v21 aborted due to an error.
Top model targets built:
Model Action Rebuild Reason
=======================================================================
afmotor_v21 Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 12.333s
Error:Unable to find S-function module 'dc_motor_wrapper.c'. S-function modules must exist as either source files or pre-compiled object files on the MATLAB path.
Thanks for your help

답변 (1개)

Gokul Nath S J
Gokul Nath S J 2023년 5월 25일
Hi Dominique,
It seems that you were not able to run the s-function modules. The issue stems from the "S-function modules" entry in the S-function dialog box in the simulink model. Please note that file names should be entered here without the ".c" extension. The error is thrown because "dc_motor_wrapper.c.c" could not be found, not "dc_motor_wrapper.c".
with regards,
Gokul Nath S J
  댓글 수: 1
Dominique Rousset
Dominique Rousset 2023년 5월 30일
I try it and get same error!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by