PMSM Variable Parameter Model VI
- Updated2023-02-21
- 4 minute(s) read
PMSM Variable Parameter Model VI
Owning Palette: Permanent Magnet Synchronous Motor VIs
Requires: Electric Motor Simulation Toolkit
Simulates the permanent magnet synchronous motor (PMSM) by using the variable parameter model function.
![]() |
temperature specifies the coil temperature and the magnet temperature of the electric motor. If the value of coil temperature or magnet temperature is greater than 0, this VI performs the temperature correction functionality for the resistance and the magnet flux.
| ||||
![]() |
initialize? specifies whether to initialize the internal state of the electric motor. This VI performs calculations that are dependent on all previous data since the VI last ran or since you set initialize? to TRUE. If you set initialize? to TRUE, this VI resets the internal state of the motor to 0 and restarts the electric motor simulation. The default value is FALSE. | ||||
![]() |
PMSM variable parameter model specifies a reference to the PMSM variable parameter model. Use the Create PMSM Variable Parameter Model VI to generate this reference. | ||||
![]() |
voltage specifies the three-phase voltage, in volts, of the electric motor. The voltage represents the three-phase voltage in a three-phase electric power system. Therefore, this array must have three elements, and each array element must specify one phase of the voltage. | ||||
![]() |
rotor position specifies the mechanical rotor position, in degrees, of the electric motor. | ||||
![]() |
speed specifies the rotor speed, in revolutions per minute, of the electric motor. | ||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||
![]() |
dt specifies the time interval, in seconds, at which LabVIEW simulates the electric motor. The value of dt must be greater than 0. | ||||
![]() |
resistance specifies resistance, in ohms, of the stator winding with a positive number. If the value of resistance is equal to or less than 0, this VI uses the resistance in the PMSM variable parameter model reference for calculation. The default value is -1. | ||||
![]() |
abc current returns the three-phase current, in amperes, in the electric motor. This output is a three-element array, each element representing one phase of the three-phase current. | ||||
![]() |
dq current returns the direct current and the quad current in amperes. The value of dq current corresponds to the value of abc current in the flux, torque (d, q) rotating reference frame. | ||||
![]() |
torque returns the electromagnetic torque, in newton meters, of the electric motor. | ||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following VIs for examples of using the PMSM Variable Parameter Model VI:
- PMSM Open Loop Simulation VI: labview\examples\Electric Motor Simulation\PMSM\PMSM Open Loop Simulation
- PMSM Variable Parameter Model Closed Loop VI: labview\examples\Electric Motor Simulation\PMSM\PMSM Variable Parameter Model Closed Loop