NI Labs Toolkits

cancel
Showing results for 
Search instead for 
Did you mean: 

PMSM Variable Parameter Model for NI Electric Motor Simulation Toolkit

Introduction

This NI Labs package helps you simulate a permanent magnet synchronous motor (PMSM) with the variable parameter model by using the NI Electric Motor Simulation Toolkit.

 

This package provides examples and projects to help you simulate a PMSM with the variable parameter model and to integrate the PMSM into your own hardware-in-the-loop (HIL) solution. A PMSM is a type of electric motor that utilizes permanent magnets rather than windings in the rotor. The 2013 release of Electric Motor Simulation Toolkit includes a constant parameter model and a finite element analysis (FEA) model for you to simulate a PMSM. This NI Labs Package provides a variable parameter model for you to simulate a PMSM.  You can use the variable parameter model to implement medium-fidelity model simulation of a PMSM.

 

Required Software

  • NI-RIO device driver software

 

Required Hardware

  • PXIe-7854R
  • cRIO-9082

 

Examples and Sample Projects

This NI Labs package contains three examples and two sample projects. Download and unzip the attached zip file to find the examples and sample projects folders. Complete the following steps to integrate a PMSM into an HIL system.

  1. Open the PMSM Open Loop Simulation folder to access the PMSM Open Loop Simulation example. Use this example to test the simulation model functions and read the RTT file.
  2. Open the PMSM Variable Parameter Model Closed Loop folder to access the PMSM Variable Parameter Model Closed Loop example. Use this example to test your control algorithms on a host computer without connecting to any targets.
  3. Open the PMSM Variable Parameter Model Control Simulation folder to access the PMSM Variable Parameter Model Control Simulation example. Use this example to simulate a PMSM on a field-programmable gate array (FPGA) target and to verify whether the algorithm can perform correctly with the HIL solution.
  4. Use sample projects to compose a real HIL system.
  • Open the PMSM Variable Parameter Model Simulation folder to access the PMSM Variable Parameter Model Simulation Sample Project. Use this sample project to compose a real HIL system with the simulator running on an FPGA target.
  • Open the PMSM Variable Parameter Model RT Simulation folder to access the PMSM Variable Parameter Model RT Simulation Sample Project. Use this sample project to compose a real HIL system with the simulator running on a Real-Time (RT) target.

Refer to the readme_PMSM_Variable_Parameter_Model.pdf for more information about how to run these examples and sample projects.

 

 

To Use the PMSM Variable Parameter Model in Your Own Applications

Use the VIs in the _PMSM Variable Parameter FLP folder to simulate a PMSM on a host computer. Use the VIs in the _PMSM Variable Parameter SGL folder to simulate a PMSM on an FPGA target.

 

Use the PMSM Variable Parameter Model VI as the motor simulation VI of your application. For simulation on host computers, use the Create PMSM Variable Parameter Model VI to create the variable parameter model before simulating a PMSM. For simulation on FPGA targets, use the Generate PMSM Variable Parameter Model FPGA Data VI to generate FPGA data which contains model parameters. You can write the FPGA data to your FPGA VI.

 

Refer to the readme_PMSM_Variable_Parameter_Model.pdf for more information about this package.

Contributors