challenge:
Develop a modular hardware-in-the-loop (HIL) test system for real-time simulation of engines and vehicles based on commercial off-the-shelf (COTS) hardware to reduce the number of physical tests required during embedded software validation.
Solution:
The test system based on NI VeriStand real-time test software and NI PXI hardware provides the computing power required by users, and can achieve high-speed control using field-programmable gate array (FPGA) hardware. At the same time, a variety of different I/Os can not only ensure that the HIL system can meet current needs, but also can be expanded to meet future application needs.
Alma Automotive is a company based in northern Italy that provides customized solutions for the calibration, control and testing of vehicles. Depending on the needs of the customer, Alma Automotive provides pure software (models or model-based analysis) or integrated hardware and software solutions. Eldor provides automotive electronic components such as coils, sensor systems and electronic control units (ECUs).
HIL systems are the standard for ECU testing because they can be used to automate and standardize tests. Most HIL systems available on the market offer standard functionality that cannot be expanded or customized. Eldor chose the HIL solution proposed by Alma Automotive because the hardware and software are open and can be fully customized to their needs.
The HIL system simulates the device controlled by the ECU. All actual signals entering the ECU must be replaced by signals generated by the HIL test system. Because the goal is to test the functionality of the ECU, the simulation must run in real time. The model must respond accurately to ECU commands to test the entire embedded control system. For some types of signals, it is difficult to reproduce a correct time base because the high-frequency signal needs to be synchronized with the instantaneous position of the crankshaft. Typical examples include in-cylinder pressure, accelerometer, ion current, and intake pressure signals.
There are many HIL systems available on the market. The main disadvantage of most systems is the lack of tools to customize the basic function library provided by the HIL vendor. It is difficult to access the underlying (FPGA-like) functions, so these systems cannot meet customer needs.
The combination of NI VeriStand and the NI PXI platform meets the user's needs for I/O, computing power, signal simulation, and data analysis, and is completely open and modular. The two key factors that determine the success of this application are: taking full advantage of the NI LabVIEW FPGA module's ability to create complex FPGA code and creating a custom device to output camshaft, crankshaft, intake valve, sensor current, and cylinder pressure signals.
The HIL system proposed by Alma Automotive (Figure 1) integrates the following hardware and software components:
A complete engine/vehicle (motorcycle)/driver model developed using a PXI real-time controller with a step time of 500μs and a single-core CPU load of 20%; a high-bandwidth signal generator implemented using a custom device to generate model-based crankshaft, camshaft, intake valve, cylinder pressure and ion current signals, and also to obtain all ECU output commands, including ignition, injection, H-bridge and interrupt light commands. The custom device is implemented using a 7852R board .
A custom I/O signal conditioning board designed and produced by Alma Automotive converts the ECU analog output signals to TTL digital signals and enhances the PXI 6723 analog output signals (variable reluctance signals, VRS) when necessary.
A custom actuator and sensor Fault Insertion Unit (FIU) and an external junction box that provides 96 signals were designed and produced by Alma Automotive.
Figure 1 HIL system integration
The vehicle simulation mode can be used for open loop (user drives the vehicle) or closed loop simulation (driver follows the vehicle speed trajectory). The dynamometer mode can also simulate the operating conditions of the test bench. The engine is modeled using a multivariable torque map, and this sub-model outputs the engine torque, air/fuel ratio and other parameters. These outputs are sent to a custom device to generate high frequency signals, such as the intake pressure signal. The engine torque is used to feed the vehicle and transmission sub-models, the drivetrain components. The engine and vehicle speeds are calculated based on the engine torque, clutch position, interposed gears, tire operation and actual loads on the front and rear wheels.
The driver submodel manipulates the steering, brakes, clutch, and gear shifting via torque-based control logic, while the dynamometer submodel calculates the torque provided to keep the engine running at the required speed and load operating conditions. There is also a heat exchange submodel to evaluate the engine's coolant temperature; the electrical system submodel allows users to simulate the starter and battery voltage levels during starting. [page]
The core of the system is an NI VeriStand custom device plug-in designed by Alma Automotive. The plug-in is an engine I/O subsystem simulator that generates two channels of VRS/Hall sensor signals with conditioned voltages up to 120V p-p, configurable angle-based waveforms, and four channels of wheel signals. It also acquires 12 channels of conditioned high-voltage ECU excitation signals; 16 channels of common high-voltage ECU output signals such as on/off, frequency, and PWM ; and 8 channels of analog input signals conditioned to 120V p-p. Figure 2 shows the setup interface for the custom device. The number of sensor wheel teeth and sensor wheel type are fully configurable.
Figure 2 Customized crankshaft reference signal generator device
The FIU developed by Alma Automotive is also FPGA-based, using FPGAs to process more than 400 signals required to operate switches. The determinism of the FPGA allows safety features to be set in the system, including user-defined fault timeouts, global FIU disable, and overcurrent monitoring on the fault bus. Make-before-break FIU operation prevents ambiguous states in fault channels with user-configurable load release delays.
The FIU developed by Alma Automotive can handle 64 channels with a maximum current limit of 2A for the power supply, and has access to four common fault buses. Open circuits GND, Vcc and VBATT can be used as power supplies. Feedback information on the switch status is available through 320 LEDs.
The user can connect either real loads or simulated loads. When using real loads, such as a throttle valve, the simulation system reads the information from the feedback sensor, such as the throttle valve potentiometer, and feeds it to the model. When using simulated loads, such as a virtual throttle valve, the feedback signal is generated by the simulator, such as an analog output channel, and sent to the ECU. Switching between real and simulated loads is done by moving the jumper on the external terminal block.
The system was successfully connected to the target ECU. Figure 3 shows a typical NI VeriStand interface for HIL testing.
Figure 3 HIL test control
panel
Users can use existing methods and bench test modes to focus on verifying the software and hardware functions of all ECUs. It is very easy to use and configure, and users can directly reconfigure the system without requesting customer support. The NI PXI platform is suitable for integration with third-party custom development boards.
It is important that the hardware and software of the HIL test system can be continuously updated as needs change. Because NI PXI hardware is modular and based on COTS components, it can be easily upgraded, which ensures that the system will operate and remain technologically advanced in the future. NI VeriStand has an open architecture and is easily integrated with LabVIEW and other development software, thus providing the necessary flexibility to meet any challenges that may arise as test requirements change.
Previous article:A new method for detecting outdoor full-color LED display screens based on CCD
Next article:A simple water quality detector circuit
- Popular Resources
- Popular amplifiers
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- RS485 communication issues in MSP430F169
- Raspberry Pi PICO low-resolution thermal imager
- Reversible USB port
- Why does the power consumption of stm32L0 increase after it enters STOP mode again after being woken up by an external interrupt in STOP mode?
- [TI millimeter wave radar evaluation]_4_boost board evaluation encountered problems 2
- Using registers to do STM8 UART1 error request help
- BearPi-HM Nano Development Board Review 0 Unboxing and Development Environment Setup
- I found another DK IOT STUDIO online IDE that runs RAPID IOT. I guess they are the same but distributed on different websites.
- ECG-based heart rate monitoring using the LaunchPad Value Line development kit for the MSP430G2452 microcontroller
- [GD32L233C-START Review] - VII. SPI mode driving 1.5-inch OLED screen