Professional Documents
Culture Documents
1 Overview
This NI labs package provides examples to help you simulate an AC induction motor (ACIM) with the
constant parameter model and integrate the ACIM into your own hardware-in-the-loop (HIL) solution.
The ACIM is the most common motor in industrial motion control systems. Main advantages of the
ACIM are simple and rugged design, low cost, and low maintenance. In the ACIM, the electromagnetic
induction from the magnetic field of the stator winding generates electric current in the rotor to
produce electromagnetic torque. This package contains two examples of simulating the ACIM.
The two types of the ACIM are the squirrel cage motor and the wound-rotor motor. Currently, this NI
labs package only supports the squirrel cage motor. This readme applies to the squirrel cage motor type.
Because of the AC supply to the stator windings, the magnetizing currents of the stator produce a
magnetic field, which generates a current in the rotor and results in a second magnet field. The
Interaction between these two magnetic fields generates torque, which forces the rotor to rotate in the
same direction as the stator magnetic field.
When the rotor speed approaches the rotating speed of the stator magnetic field, the relative speed
between the rotor and the stator magnetic field decreases. As a result, the current in the rotor windings
decreases and the output torque drops. In the end, the rotor speed reaches a stable point where the
electromagnetic torque matches with the load torque. Owning to this mechanism, a slip must exist
between the rotor speed and the rotating speed of the stator magnetic field when an ACIM runs.
Required Software
• LabVIEW 2013 Full or Professional Development System (32-bit)
• LabVIEW 2013 Control Design and Simulation Module
• NI Electric Motor Simulation Toolkit 2013
The following figure shows the front panel of the ACIM Constant Parameter Model Closed Loop VI when
you run this example.
2.1.2 AC Induction Motor Constant Parameter Model Simulation on
FPGA Targets
In this example, the simulator runs on an FPGA target and the controller runs on a Real-Time (RT) PXI
target. The controller reads the ACIM state from the FPGA target, controls the motor speed with the
FOC or VVVF algorithms, and feeds back the voltage and load torque to the simulator on the FPGA target.
Required Software
• LabVIEW 2013 Full or Professional Development System (32-bit)
• LabVIEW 2013 Real-Time Module
• LabVIEW 2013 FPGA Module
• LabVIEW 2013 Control Design and Simulation Module
• NI Electric Motor Simulation Toolkit 2013
Required Hardware
• PXIe-7854R
The ACIM Constant Parameter Model Control Simulation.lvproj appears as shown in the following figure.
• ACIM Constant Parameter Model Simulator.vi— This VI serves as the simulator. The simulator
runs on an FPGA target.
• ACIM Constant Parameter Model Controller.vi— This VI serves as the controller. The controller
runs on an RT target.
Use the ACIM Constant Parameter Model VI as the motor simulation VI of your application. For
simulation on FPGA targets, use the Generate ACIM Constant Parameter Model FPGA Data VI to
generate FPGA data which contains model parameters. You can write the FPGA data to your FPGA VI.
This VI uses the constant parameter model to simulate an AC induction motor on a host computer.
Inputs
initialize? specifies whether to initialize the internal state of the electric motor. 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.
ACIM constant parameters specifies the parameters describing the characteristics of an ACIM.
number of poles specifies the number of poles in the electric motor. The number of
poles must be a positive even number.
stator leakage inductance specifies the leakage inductance, in henries, of the stator
windings. The value of stator leakage inductance must be greater than zero.
rotor leakage inductance specifies the leakage inductance, in henries, of the rotor
windings. The value of rotor leakage inductance must be greater than zero.
magnetizing inductance specifies the magnetizing inductance, in henries, of the motor.
The value of magnetizing inductance must be greater than zero.
stator base resistance specifies the resistance, in ohms, of the stator windings at base
temperature. The value of stator base resistance must be greater than zero.
rotor base resistance specifies the resistance, in ohms, of the rotor windings at base
temperature. The value of rotor base resistance must be greater than zero.
stator temperature coefficient specifies the temperature coefficient, in ohms per kelvin,
of the stator windings. The value of stator temperature coefficient must be greater
than zero.
rotor temperature coefficient specifies the temperature coefficient, in ohms per kelvin,
of the rotor windings. The value of rotor temperature coefficient must be greater than
zero.
base temperature specifies the base temperature, in kelvins, for the stator resistance
and the rotor resistance. The values you specify for stator base resistance and rotor
base resistance are resistances at base temperature.
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.
temperature specifies the motor temperature.
stator temperature specifies the temperature, in kelvins, of the stator windings for
resistance correction. If the value of stator temperature is equal to or less than zero, no
resistance correction happens.
rotor temperature specifies the temperature, in kelvins, of the rotor windings for
resistance correction. If the value of rotor temperature is equal to or less than zero, no
resistance correction happens.
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.
Outputs
abc current returns the three-phase current, in amperes, in the electric motor stator. This
output is a three-element array, each element representing one of the three-phase current.
torque returns the electromagnetic torque, in newton meters, of the electric motor.
error out contains error information. This output provides standard error out functionality.
Inputs
initialize? specifies whether to initialize the internal state of the electric motor. 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.
ACIM constant parameters FPGA specifies the parameters describing the characteristics of an
ACIM. Use the Generate ACIM Constant Parameter Model FPGA Data VI to generate the value of
ACIM constant parameters FPGA.
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.
load torque specifies the current load torque, in newton meters, that you externally apply to
the motor.
temperature specifies the motor temperature.
stator temperature specifies the temperature, in kelvins, of the stator windings for
resistance correction. If the value of stator temperature is equal to or less than zero, no
resistance correction happens.
rotor temperature specifies the temperature, in kelvins, of the rotor windings for
resistance correction. If the value of rotor temperature is equal to or less than zero, no
resistance correction happens.
dt specifies the time interval, in seconds, at which LabVIEW simulates the electric motor. The
value of dt must be greater than 0.
Outputs
abc current returns the three-phase current, in amperes, in the electric motor stator. This
output is a three-element array, each element representing one of the three-phase current.
torque returns the electromagnetic torque, in newton meters, of the electric motor.
speed returns the speed, in radians per second, of the motor at the next time step.
position returns the position, in radians, of the rotor at the next time step.