Development of Hardware-in-the-Loop (HIL) and Fast Prototyping Tool (FPT) Using OPAL-RT
Development of Hardware-in-the-Loop (HIL) and Fast Prototyping Tool (FPT) Using OPAL-RT
Increasing the load on dyno setup Quick design and testing of new features in inverter SW (e.g., current
controllers and thermal management algorithms)
Working with high voltage setup even when not required Easier fault injection studies
Longer time required for testing Saving time and money
Difficulty in monitoring fast internal signals in the SW One-time effort (i.e., once SW is built, it is useful in future)
Difficulty of debugging application SW Output any signal with high rates ( up to 1000 times faster than CAN)
HIL project - concept
“Testing with actual HW” V.s. “Testing with HIL unit”
OPAL-RT
Dyno
PWMs Measurements
Inverter
using FPGA
HIL project – CAN communication development
Approach 1: Using CANalyzer Approach 2: Can module of OPAL-RT Unit
- Facilitating automatic testing and saving time by
CAN MC
• Current signals
• IGBT/Motor Temp.
• Gate Drive faults
• HVDC
CAN
FPT project - SW structure definition
SW platform SM_Controller (fast critical diagnostics and input/output signals)
CAN
Thermal PWM Enable
Diagnostics
𝒇𝒇𝒔𝒔𝒔𝒔𝒔𝒔𝒔𝒔. = 𝟏𝟏𝟏𝟏𝟏𝟏 𝝁𝝁𝝁𝝁
100 μs Diagnostic
100 μs
Motor Temp.
Lookup Table
AC Currents
Offset/Gain Filter Offset Learn
10 μs Diagnostic
10 μs
Other Ain
Offset/Gain
FPT project - SW structure definition
Software Overview
CAN Communication
Power
Mode PWM signals
Power PWM
Enable Cmd
Shutdown Moding Generation
Cmd
12V wakeup
IGBT Reset
FPT project – SW development and validation
Troubleshooting of FPT SW using HIL HIL
FPT
• 5/25V
• PWM Signals
• Current
measurements
• IGBT/Motor
Position Temp.
• Gate Drive faults
Troubleshooting of FPT SW using the previously
• HVDC
CAN Communication developed HIL unit without needing to touch high
Resolver voltage in early stages
(Sin-Cos)
RT-LAB interface
Conclusion
Hardware-in-the-loop (HIL) unit
Definition of analog/digital mapping of I/O cards
CAN Communication setup: 1) commanding over CANalyzer, 2) commanding over CAN unit
Testing and validating several diagnostics and motor control algorithms and controllers of TM and GEN SWs for both Karma Revero and Revero GT
Va l i d a t i o n o f F P T t o o l u s i n g d e v e l o p e d O PA L - RT H I L u n i t ( r u n n i n g t w o t a r g e t s o n t h e s a m e l a p t o p )
Va l i d a t i o n o f t h e d e v e l o p e d F P T t o o l o n s t a n d - a l o n e l o a d a n d d y n a m o m e t e r
THANK YOU
Questions?