Create and Validate Model for Motor Control System
Use Motor Control Blockset™ to design a Simulink® model for a motor control system and validate it after deploying the model to the motor control hardware. This table lists the fundamental steps for creating and deploying a field-oriented control algorithm for a PMSM.
Note
You can use a similar procedure to design and deploy a control algorithm for the other types of motors.
Modeling Steps | Learn More |
---|---|
Compute estimated motor parameters and create plant model | Estimate PMSM Parameters Using Recommended Hardware |
Creating Plant Model Using Motor Control Blockset | |
Create controller algorithm for motor control system | Design Field-Oriented Control Algorithm |
Estimate Control Gains and Use Utility Functions | |
Code Verification and Profiling Using PIL Testing | |
Deploy and validate motor control system | Prepare Target Hardware |
Add Hardware Drivers to Simulation Model and Deploy to Target Hardware | |
Validate System |
See these instructions to identify and debug common problems that can occur when you run the model on the target hardware.
Troubleshooting Steps | Learn More |
---|---|
Check for errors in measurements by analog to digital converter (ADC) peripheral in motor control applications | Check ADC Inputs |
Verify pulse width modulation (PWM) signals | Verify PWM Outputs |
Check for issues in hardware connections | Check Hardware Connections |
Check for issues in algorithm used for model | Test Algorithm Design |
Check for problems related to software architecture, code performance, and code execution time | Check Generated Code |