Hardware Troubleshooting
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.
In addition to examples supporting custom hardware deployment, Motor Control Blockset provides examples that are not pre-configured with device drivers for any particular hardware. For more information, see Generic (ANSI C) Code Generation.
For details about Motor Control Blockset examples that illustrate modeling and control of motor control applications for different microcontrollers, real-time systems, and FPGA hardware kits and enable auto-deployment (deployment with pre-configured device drivers) to the target device, see Hardware-Specific Code Generation.
Topics
- Check ADC Inputs
Check for errors in measurements by analog to digital converter (ADC) peripheral in motor control applications.
- Verify PWM Outputs
Verify pulse width modulation (PWM) signals.
- Check Hardware Connections
Check for issues in hardware connections.
- Test Algorithm Design
Check for issues in algorithm used for model.
- Check Generated Code
Check for problems related to software architecture, code performance, and code execution time.