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

LHP Engineering Solutions (LHP), a global engineering services provider and technology integrator within the automotive industry, announced that David Glass, LHP’s CEO was recognized in the 2018 Best Of Comparably Awards for ‘Best CEO in 2018’ for small to mid-sized companies. CEO’s who were honored include leaders from Microsoft, Google, Tesla, and Amazon.

Back in the early sixties, a car’s intake valve would open for a specific duration during a predetermined time in the engine’s four-stroke cycle. It was not an especially flexible system, but in the early days of motor vehicles, this wasn’t a big problem. In the engines of those days, idle and operating RPMs were often quite similar. However, as vehicles advanced in complexity, the range of potential RPMs widened, leading to greater compromises in systems with static valve timing. The need for a better solution lead to the rise of variable valve timing (VVT).

LHPU, the training division of LHP Engineering Solutions (LHP), and Ivy Tech Community College, Indiana’s largest public postsecondary institution, are proud to announce a partnership with the Indiana Department of Veterans’ Affairs (IDVA). This partnership will assist American veterans with hands-on training and career development in the automotive space. LHPU’s mission is to grow the worldwide talent pool of highly qualified controls engineers. In doing so, since its inception in 2013, LHPU and Ivy Tech have helped bridge the gap between the classroom and the workplace by delivering hands-on boot camp training to over 600 students and engineering professionals.