When you work with a custom hardware (hardware not used in the Motor Control Blockset™ examples), you may face trouble running the motor. Follow these instructions to identify and debug these issues.
Check for errors in measurements by analog to digital converter (ADC) peripheral in motor control applications.
Verify pulse width modulation (PWM) signals.
Check for issues in hardware connections.
Check for issues in algorithm used for model.
Check for problems related to software architecture, code performance, and code execution time.