Hello everyone, I design simulink for control DC servo motor. Please help me fix this bug.

2 views (last 30 days)
=== Simulation (Elapsed: 14 sec) ===
### Starting build procedure for model: En_PID
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw
Warning:Model is configured with External mode or Rapid Accelerator mode which requires all block state data to be addressable. The parameter "Use bitsets for storing state configuration" or "Use bitsets for storing Boolean data" is turned on in the Configuration Parameters dialog box. However, these settings have been ignored because these two parameters do not work with External or Rapid Accelerator Mode.
### Invoking Target Language Compiler on En_PID.rtw
### Using System Target File: D:\Program Files\Polyspace\R2019a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file En_PID_types.h
### Writing source file En_PID.c
### Writing header file En_PID_private.h
### Writing header file En_PID.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rtmodel.h
### TLC code generation complete.
### Generating TLC interface API.
### Creating data type transition file En_PID_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR
### 'D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw\En_PID.mk' is up to date
### Building 'En_PID': "D:\PROGRA~2\POLYSP~1\R2019a\bin\win64\gmake" -f En_PID.mk all
D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw>cd .
D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw>if "" == "" ("D:\PROGRA~2\POLYSP~1\R2019a\bin\win64\gmake" -f En_PID.mk all ) else ("D:\PROGRA~2\POLYSP~1\R2019a\bin\win64\gmake" -f En_PID.mk )
gmake: *** No rule to make target `D:/StudyFolder/LineFollowingRobot/ControlDCMotorWithPIDAndMatlab/Encoder_PID/../src/encoder_arduino.cpp', needed by `encoder_arduino.o'. Stop.
D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\StudyFolder\LineFollowingRobot\ControlDCMotorWithPIDAndMatlab\Encoder_PID\En_PID_ert_rtw>exit 1
### Creating HTML report file En_PID_codegen_rpt.html
### Build procedure for model: 'En_PID' aborted due to an error.
Error:Error(s) encountered while building "En_PID":
### Failed to generate all binary outputs.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!