Use the library blocks in your algorithm for the motor control system.
DQ Limiter | Saturate voltages (or current) in the dq reference frame |
PMSM Feed Forward Control | Decouple d-axis and q-axis current to eliminate disturbance |
PMSM Torque Estimator | Estimate electromechanical torque and power |
Position Generator | Generate position ramp of fixed frequency |
MTPA Control Reference | Compute reference currents for Maximum Torque Per Ampere (MTPA) and field-weakening operation |
Vector Control Reference | Compute d and q axis components of a reference vector |
Derating Function | Compute derating factor |
Discrete PI Controller | Implement discrete PI controller |
Discrete PI Controller with anti-windup and reset | Implement discrete PI controller with anti-windup and reset functionality |
Field Oriented Control Autotuner | Automatically and sequentially tune multiple PID control loops in field-oriented control application |
3-Phase Sine Voltage Generator | Generate balanced three-phase sinusoidal signals |
atan2 | Compute four-quadrant arctangent |
Clarke Transform | Implement ab to αβ transformation |
Inverse Clarke Transform | Implement αβ to abc transformation |
Inverse Park Transform | Implement dq to αβ transformation |
Park Transform | Implement αβ to dq transformation |
Sine-Cosine Lookup | Implement sine and cosine functions using lookup table approach |
Space Vector Generator | Generate space vector modulation signals |
Average Value Inverter | Compute three-phase AC voltage from inverter DC voltage |
Interior PMSM | Three-phase interior permanent magnet synchronous motor with sinusoidal back electromotive force |
Surface Mount PMSM | Three-phase exterior permanent magnet synchronous motor with sinusoidal back electromotive force |
Protection Relay | Implement protection relay with definite minimum time (DMT) trip characteristics |
Host Serial Receive | Configure host-side serial communications interface to receive data from serial port |
Host Serial Setup | Configure COM ports for the host-side Host Serial Receive and Host Serial Transmit blocks |
Host Serial Transmit | Configure host-side serial communications interface to transmit data to serial port |
Hall Speed and Position | Compute speed and estimate position of rotor by using Hall sensors |
Hall Validity | Compute rotor spin direction and validity of Hall sensor sequence |
Mechanical to Electrical Position | Compute electrical position of rotor from mechanical position |
Quadrature decoder | Compute position of quadrature encoder |
Resolver Decoder | Compute electrical angular position of resolver |
Software Watchdog Timer | Output true until counter reaches maximum count limit |
Speed Measurement | Compute speed from rotor angular position |
Sliding Mode Observer | Compute electrical position and mechanical speed of rotor |
Flux Observer | Compute electrical position, magnetic flux, and electrical torque of rotor |
IIR Filter | Implement infinite impulse response (IIR) filter |