LabVIEW Electric Motor Simulation Toolkit API Reference

Content Type
Programming Language
Current manual

PMSM Constant Parameter Model VI

PMSM Constant 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 constant parameter model function.

Examples

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 constant parameters specifies the parameters describing the characteristics of a PMSM.
number of poles specifies the number of poles in the electric motor. The number of poles must be an even number.
resistance specifies the resistance, in ohms, in the electric motor. The value of resistance must be greater than 0.
d inductance specifies the inductance, in henries, along the d or direct axis. The value of d inductance must be greater than 0.
q inductance specifies the inductance, in henries, along the q or quad axis. The value of q inductance must be greater than 0.
flux linkage specifies the flux linkage, in webers, between the rotor and the stator. The value of flux linkage must be greater than 0.
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.
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 Constant Parameter Model VI:

  • PMSM Open Loop Simulation VI: labview\examples\Electric Motor Simulation\PMSM\PMSM Open Loop Simulation
  • PMSM Constant Parameter Model Closed Loop VI: labview\examples\Electric Motor Simulation\PMSM\PMSM Constant Parameter Model Closed Loop
In This Section
Was this information helpful?