ADAQ23876
Recommended for New Designs
The ADAQ23876 is a precision, high speed, µModule® data acquisition solution that reduces the development cycle of a precision measurement systems by transferring...
Datasheet
ADAQ23876 on Analog.com
AD3552R
Recommended for New Designs
The AD3552R is a low drift, ultra-fast, 16-bit accuracy, current output digital-to-analog converter (DAC) that can be configured in multiple voltage span...
Datasheet
AD3552R on Analog.com
In the previous blog post, we covered several applications where Fast Precision DACs add value. In today’s post we will focus on Hardware in the Loop, a new application that has found an opportunity with the increasing electrification of vehicles.
Closed-loop applications are becoming widely spread in many of today’s emerging technologies. Basically, a sensor determines how an actuator must operate to achieve the desired result, adapting continuously to changes in the environment. A good example is a car’s cruise control, where a sensor measures speed and other parameters and a driver acts on the throttle following the algorithms in one of the many Electronic Control Units (ECU).
Now think of how cruise control adapts to changes in inclination, wind shear, and re-arming. Many familiar concepts come into play here: reaction time, latency, step response, slew rate, overshoot, load regulation. Yes, we all want the cruise control to keep a steady speed when the slope changes and to reach the cruise speed gently when re-armed. It ultimately depends on closed loop latency, the time elapsed since measuring a change and acting to compensate. Closed loop latency involves propagation speed, conversion time and processing time. A high latency, like a low phase margin, can make the speed oscillate.
A potential driving scenario for a cruise control is depicted in Figure 1. As seen in the speed plot, the cruise control responds nicely to re-arming (step response) and slope change (load regulation) but it reacts too late to wind shear. The power plot shows what the cruise control is doing to adapt to changing conditions.
Figure 1. Speed and power versus time in a cruise speed control scenario
Let us consider the manufacturer’s side. Suppose you have to test the Electronic Control Unit and the cruise control SW on 7 different engines with hundreds of test cases. It’s impractical to have real cars touring a circuit around the clock. So why not interface the ECU to a device that emulates the behaviour of the car? This emulator can run 24/7 without human intervention to validate every small change in the SW.
This is what we call Hardware in the Loop (HiL). This technique consists in replacing a part of a system with an emulator capable of interfacing the signals used for sensing and control, with the purpose of validating the other part under multiple conditions.
The electrification of many components of the car facilitates the automation of this process since many interactions between the ECU and the emulator can take place at the electrical level.
Figure 2. Using HiL to replace field testing with automated lab testing
Signals captured from sensors and signals driving actuators can be digital or analog, therefore the emulator must include fast and precise A/D and D/A converters. Latency from the capture point to the drive point must be as small as possible to maximize the range of applications where the emulator can be used. High resolution and precision is required to emulate the large dynamic range of some sensors and actuators.
The emulator may also include a DSP or FPGA to process the input and generate the output on a continuous stream. The latency of this device adds to the total figure and can be significant, especially if FIR filters are used.
Figure 3. Conceptual diagram of a HiL system testing an ECU
The total latency comprises the conversion time of the ADC and DAC, the time to transfer digital to and from the FPGA, the processing time in the FPGA and the settling time of the DAC output. Let us see an example using real devices:
Figure 4. Implementation of a HiL system using ADAQ23876 and AD3552R
Element |
Rate |
Latency |
ADAQ23876 |
10 MSPS |
100 ns |
LVDS bus |
800 Mbps |
20 ns |
FPGA |
160 Mbps |
20 ns |
QSPI bus |
400 Mbps |
40 ns |
AD3552R |
10 MUPS |
10 ns |
TIA Settling Time |
|
100 ns |
Table 1. Data rate and latency of each element of the HiL system
Some operations can be overlapped to increase the update rate of the signal chain, which gives higher signal bandwidth. However, closed-loop bandwidth is still limited by the total latency. In other words, the device cannot compensate changes that last less than the signal chain latency. For example, acquisition, data transfer and data processing take place during the settling time of the DAC which allows achieving a sampling rate of 10 MSPS.
Hardware in the Loop emulators are used in multiple technology fields:
HiL systems are mandatory when testing devices with short response time. Beyond that, the use of HiL platforms allows automating the validation of these devices in multiple scenarios, with extensive test plans and ensuring that stringent requirements are met in all conditions. This level of coverage is impractical in field tests.
A key part of HiL is signal interface, in particular analog I/O that must be fast and accurate, requiring a new breadth of precision ADCs and DACs.