LHP Engineering Solutions

LHP Latest News Blog

Improving H/Ev Motor Control Using Simulation in Labview

How to evaluate H/EV technology to improve motor control using simulation in LabView

One of the most integral elements of the Hybrid and Electrical Vehicle or H/EV is the control technology. Electric Vehicle Powertrain
Due to these vehicles operating in a vast range of environments the motor will regularly switch through various loads. With that said, the most important issue is improving motor control efficiency while maintaining performance and avoiding damage. It’s wise to test control algorithms for motor control through simulation before applying power to any circuit.  Especially when working with hundreds of volts and/or hundreds of amps of current. A simple mistake in your control algorithm can damage components or even worse cause collateral damage. 

 

Models for Simulation

Before creating your simulation, consider how you are going to create or obtain models for your inverter and motor.  Inverter models are usually less complex to create. High power switching transistors and diodes will have quite a few of their characteristics published in their manufacturer’s data sheet. These numbers can be plugged into the 3-phase inverter model VI in the LabVIEW Motor Simulation Toolkit.

Getting motor model parameters can be more difficult. If you are fortunate, the motor manufacturer can supply a JMAG-RT model (.rtt) or an ANSYS motor model file (it’s in a text format, so .txt).  Otherwise, you have three options: 1) You can make a custom model from scratch compatible with the parameters needed by the NI toolkit, 2) Model your motor using the ANSYS software, or 3) Model your motor using the JMAG-RT software. Fortunately, you do have the option of signing up for the free JMAG Express Online access and generating your own .rtt file.

This still isn’t ideal because you need to know quite a few details about the construction of your motors such as magnet shape, slot dimensions, and wire characteristics to name a few.

Simulation

With some form of parameters collected or models provided, these can be fed into the toolkit for different fidelity levels of models: constant parameter model/linear model, variable parameter model, and FEA model, with the fidelity increasing from constant parameter to FEA. Naturally, the number of resources required increases with fidelity.  Examples of simulation for different types of motors are included in the toolkit, notably: AC induction motors, permanent magnet synchronous motors, or switched reluctance motors.

 

Here is an example of a PMSM finite element analysis model simulation with the following settings and start speed of 0 RPM.

Conditions: 

 

 

Velocity Setpoint RPM

Here we can see the velocity ramp up to the setpoint over time:

Acceleration setpoint RPM

Under Acceleration, the current draw is quite large for the 3 phases.  Note how much it drops when reaching the RPM setpoint:

Electromagnetic torque

And how the electromagnetic torque settles to the load torque:

 

Electromagnitic Torque

 

The initial conditions can be adjusted dynamically during the simulation to see what happens.

 

 

Cracked ECU

Instead of using a simulated inverter or trying to replicate an existing control algorithm in LabVIEW, you could input the digital control signals from an actual ECU to an FPGA simulation of the inverter and motor to see what happens while changing the inverter and motor parameters. You could also create your control algorithm in LabVIEW and output the digital signals to actual transistor gates on a real inverter to control a physical motor.

Conclusion

Though only a few of the simulation models were evaluated, there are various other simulation models offered through the highly accurate toolkit will allow you to approach your motor simulation confidently. Whether you are armed with hard data from manufacturers or creating a model from scratch you can get your motor running and be on your way in no time. For a more complete investigation, the many LabVIEW examples that ship with the toolkit as well as the help file should aid you greatly in your understanding of motor simulation.  

 

The Motor Simulation in Labview was shown at the recent Electric and Hybrid Vehicle Technology Expo in Novi, MI. 

If you missed the show, Contact Us and download the latest white paper to learn more about motor simulation and advanced testing needs. 

 

Learn more about how you can prepare for the shifting automotive industry by downloading our White paper: Adapting to New Testing Needs in the Shifting Automotive Industry  

 

Download White Paper


[i] http://www.chicagotribune.com/classified/automotive/fuelefficient/sc-auto-cover-electric-vehicles-combustion-engines-20171018-story.html

[ii] IHS April 2016


Related Articles

Related Downloads

 

 

Press CTRL + D to bookmark this page.Press Command/Cmd + D to bookmark this page. / Print

Most Recent

National Instruments (NI) and LHP Engineering Solutions (LHP) are excited to announce a partnership which transitions distribution of current NI PCG Modules to the LHP Technology Solutions team.  LHP is now the sole distributor of the PCG module line. Along with the Module transition, LHP has also acquired the Drivven name and brand.

LHPU specializes in helping aspiring automotive engineers get a head start in their field by providing you with the experience you need to succeed, including experience with the latest technologies, experience working with others, experience in maintaining a set schedule, and so much more.

Today's pace of technological change in the marketplace is accelerating. Customers and companies are trying to really grasp what's going on in technological development. The goal of LHPU is to provide engineers who can hit the ground running and really help our customers understand what's going on and help to re-engineer their engineering departments to help achieve their goals around data analytics, telematics, and embedded controls and software.