Preparing the Motor Model (Electric Motor Simulation Toolkit)
- Updated2023-02-21
- 5 minute(s) read
To simulate an electric motor, you must prepare the parameters and data pertaining to the motor model that you want to use. Different models require different resources at the preparation stage. This topic introduces you to the basis of obtaining the motor parameters and raw data.
Reading the Constant Parameters
To use the constant parameter model or linear model, you must know the parameters of the electric motor that you want to simulate. The simulator VI reads the motor parameters and imitates the behavior of a real motor.
The following figure is an example showing how the simulator VI reads the motor parameters. In this example, the simulator VI is PMSM Constant Parameter Model.vi. You must specify the motor parameters, such as the number of poles, resistance, inductance, and flux linkage, to the simulator VI.

Related Information
PMSM Constant Parameter Model VI
Reading an RTT File Using LabVIEW VIs
To use the finite element analysis (FEA) model or the variable parameter model, you can read the motor parameters and raw data from an RTT file.
With the Electric Motor Simulation Toolkit, you can read an RTT file to get a LabVIEW class reference of the model. The LabVIEW class reference contains the motor parameters in the LabVIEW format (lvclass), which is useful for the simulator VIs to obtain characteristics of the electric motor.
The following figure is an example showing how to read the RTT file and use the LabVIEW class reference with the simulator VI.

The illustration shows the following sequence of steps:
- The Create PMSM FEA Model.vi reads the RTT file to get the motor parameters and data.
- The simulator VI uses the motor parameters and data that the previous part of this program reads to simulate the behavior of a motor. In this case, the simulator VI is the PMSM FEA Model.vi.
![]() |
Note If you are simulating a PMSM with the variable parameter model, use the Create PMSM Variable Parameter Model.vi to read the RTT file. If you are simulating an SRM with the FEA model, use the Read SRM RTT File.vi to read the RTT file. |
Related Information
Reading an ANSYS Motor Model File Using LabVIEW VIs
To use the variable parameter model for simulating permanent magnet synchronous motors (PMSM), you can read the motor parameters and raw data from an ANSYS motor model file.
With the Electric Motor Simulation Toolkit, you can read an ANSYS motor model file to get a LabVIEW class reference of the PMSM variable parameter model. The LabVIEW class reference contains the motor parameters in the LabVIEW format (lvclass). The format is useful for the simulator VIs to obtain characteristics of the electric motor.
The following figure is an example showing how to read an ANSYS motor model file and use the LabVIEW class reference with the simulator VI.

The illustration shows the following sequence of steps:
- The Create PMSM Variable Parameter Model.vi reads the ANSYS motor model file to get the motor parameters and data.
- The simulator VI uses the motor parameters and data that the previous part of this program reads to simulate the behavior of a motor. In this case, the simulator VI is the PMSM Variable Parameter Model.vi.
Related Information
Create PMSM Variable Parameter Model VI
PMSM Variable Parameter Model VI
Importing an External Model
To use the variable parameter model, you can get the motor parameters and raw data by importing an external model.
With the Electric Motor Simulation Toolkit, you can import an external model to generate a LabVIEW class reference of the variable parameter model. The LabVIEW class reference contains the motor parameters in the LabVIEW format (lvclass). The format is useful for the simulator VIs to obtain characteristics of the electric motor.
The following figure is an example showing how to import an external model and use the LabVIEW class reference with the simulator VI.

The illustration shows the following sequence of steps:
- The Create PMSM Variable Parameter Model.vi imports the external model to get the motor parameters and data.
- The simulator VI uses the motor parameters and data that the previous part of this program reads to simulate the behavior of a motor. In this case, the simulator VI is the PMSM Variable Parameter Model.vi.
Related Information
Create PMSM Variable Parameter Model VI
PMSM Variable Parameter Model VI
Related Examples
Refer to the following open-loop examples that you install along with this toolkit to get familiar with preparing the motor models.
- ACIM Open Loop Simulation VI in the labview\examples\Electric Motor Simulation\ACIM\ACIM Open Loop Simulation directory:
Open example
Find related examples - PMSM Open Loop Simulation VI in the labview\examples\Electric Motor Simulation\PMSM\PMSM Open Loop Simulation directory:
Open example
Find related examples - SRM Open Loop Simulation VI in the labview\examples\Electric Motor Simulation\SRM\SRM Open Loop Simulation directory:
Open example
Find related examples
