硬件故障排除
解决与自定义硬件相关的问题
当您使用自定义硬件(在 Motor Control Blockset™ 示例中未使用的硬件)时,您可能会在运行电机时遇到问题。按照以下说明来确定和调试这些问题。
除了提供支持自定义硬件部署的示例外,Motor Control Blockset 还提供了一些未预先配置任何特定硬件的设备驱动程序的示例。有关详细信息,请参阅 泛型 (ANSI C) 代码生成。
Motor Control Blockset 中的示例说明了针对不同微控制器、实时系统和 FPGA 硬件套件的电机控制应用的建模与控制,并支持自动部署(使用预配置的设备驱动程序进行部署)到目标设备。有关这些示例的详细信息,请参阅硬件特定代码生成。
主题
- 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.