以仿真为主的示例
使用参考示例分析电机和控制特性,并增强电机控制算法的实现。
Motor Control Blockset™ 参考示例支持实现电机控制算法的仿真和代码生成。尽管大多数示例都可以在支持的硬件上自动部署(预先配置了设备驱动程序),但以下示例没有预先配置的自动部署功能。不过,您可以使用这些示例来执行分析并生成泛型 C 代码,然后可以在任何微控制器上进一步配置和部署这些代码。面向自定义硬件的示例中提供的适用于自定义硬件的算法导出工作流示例介绍了配置泛型 C 代码以在任何自定义微控制器上进行部署的工作流。
精选示例
PMSM Drive Characteristics and Constraint Curves
Uses Motor Control Blockset™ to show how to use the PMSM characteristic plotting and PMSM milestone speed identification functions to obtain a control trajectory.
PMSM Constraint Curves and Their Application
Uses Motor Control Blockset™ to explain the fundamentals of constraint curves, utilization of these curves to determine operating currents, and usage of the grid of these currents in simulation or deployment environments.
SynRM Constraint Curves and Their Application
Uses Motor Control Blockset™ to utilize the motor constraint curves to determine the operating currents and use lookup tables of these currents in simulation or deployment environments. The example uses the PMSM constraint curves described in the PMSM Drive Characteristics and Constraint Curves page.
Field-Weakening Control (with MTPA) of Nonlinear PMSM Using Lookup Table
Uses a lookup table (LUT) for a nonlinear permanent magnet synchronous motor (PMSM) and controller to run the motor using field-weakening control (with maximum torque per ampere (MTPA)). Use this example to replicate and run a finite element analysis (FEA) based nonlinear, high-fidelity PMSM in simulation. This example helps motor design engineers to simulate high-performance motors in real-world motor control applications. In addition, control system engineers can use this example to design control algorithms for a given set of motor parameter data to achieve high levels of accuracy in tracking and controlling speed and torque as well as to meet efficiency requirements, especially for high-performance motors.
Field-Weakening Control (with MTPA) of Nonlinear Synchronous Reluctance Motors Using Lookup Table
Uses a lookup table (LUT) for a nonlinear synchronous reluctance motor and controller to run the motor using field-weakening control (with maximum torque per ampere (MTPA)). Use this example to replicate and run a finite element analysis (FEA) based nonlinear, high-fidelity synchronous reluctance motor in simulation. This example helps motor design engineers to simulate high-performance motors in real-world motor control applications. In addition, control system engineers can use this example to design control algorithms for a given set of motor parameter data to achieve high levels of accuracy in tracking and controlling speed and torque as well as to meet efficiency requirements, especially for high-performance motors.
Initial Position Estimation and Field-Weakening Control of IPMSM Using Pulsating High-Frequency Injection and Extended EMF Observer
Uses sensorless techniques such as pulsating high-frequency injection and extended EMF observer to estimate and track motor position to run an interior permanent magnet synchronous motor (IPMSM) operation using field-weakening control (FWC).
使用强化学习的 PMSM 磁场定向控制
此示例说明如何使用强化学习的控制设计方法来实现永磁同步电机 (PMSM) 的磁场定向控制 (FOC)。此示例使用 FOC 原理。不过,它使用强化学习 (RL) 智能体代替 PI 控制器。有关 FOC 的更多详细信息,请参阅磁场定向控制 (FOC)。
Determine Power Losses and THD for PWM Methods
Calculates the inverter power loss and total harmonic distortion (THD) in motor current for different pulse-width modulation (PWM) methods. The example uses field-oriented control (FOC) algorithm that runs a permanent-magnet synchronous motor (PMSM) in speed control mode as a reference. The example only supports simulation.
Analyze and Verify Motor Control Algorithms Using Polyspace
Uses the Polyspace® static code analysis tools to analyze and verify Simulink® models containing motor control algorithms. Static code analysis is a software verification technique that analyzes source code for quality, reliability, and security without executing the code. This approach uses robust error detection routines (that include checks for critical run-time errors) to identify bugs and defects and in addition ensures compliance with common coding standards. It provides a cost-effective alternative to measure and track the software quality metrics and eliminates the need to instrument the code or to write elaborate unit test cases.
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)