Using PXI-based fault insertion and sensor simulation in electronic test

Like
Liked

Date:

Electronic Control Units (ECUs) now sit at the heart of nearly every vehicle system, from anti-lock braking to battery management. In EVs, these units govern functions where a single fault can compromise safety. That reality places a heavy burden on you as a test engineer: proving that an ECU behaves predictably under every plausible good and bad condition, and doing so without waiting for a physical prototype or risking expensive hardware.

Hardware-in-the-Loop Simulation (HILS) answers that need. It lets you validate ECU behavior against a simulated operating environment long before a vehicle ever hits the road, and it scales from early prototype work all the way to high-volume production test.

How HILS Works

HILS connects the real signals from a controller to a test platform that mimics the final system’s operation. Stimulus instrumentation replaces the ECU’s real-world sensors with electronic simulators, while measurement instrumentation captures and verifies the ECU’s control outputs. The goal is twofold: confirm the ECU operates correctly under known good conditions, and confirm it protects the vehicle and its occupants when something goes wrong.

Consider an anti-lock braking system. If the driver hits the brake pedal while a wheel speed sensor has failed, the ECU still needs to stop the vehicle as quickly and safely as possible. With HILS, you can recreate that failed sensor, and countless other fault combinations, without building the actual physical circumstances. Design and verification iterations follow exactly as if you were testing the finished product, but you avoid the cost, time, and hazard of producing real faults.

The Limits of Traditional Fault Insertion

Safety-critical ECUs go through certification, where you introduce a defined series of faults and check that the unit responds safely and predictably. For years, engineers relied on a manual patch panel to inject those faults. Cables connect the ECU’s I/O lines to stimulus and measurement instrumentation. You disconnect lines to simulate open circuits, or tie them together to simulate short circuits to ground, to a voltage source, or to other I/O lines. Move a cable, measure the result, repeat.

This approach carries real drawbacks:

  • Size. Patch panels tend to be large and consume valuable bench space.
  • Speed. Manual operation is slow and doesn’t suit high-volume test.
  • Repeatability. Human intervention introduces error and makes traceable reporting difficult.
  • Cost. Maintenance and labor costs run high, and the process depends on a documented, skilled knowledge base.

Reproducing a failed test condition quickly and precisely is a major advantage in any validation program. Manual patching works against that goal.

Automating Fault Insertion With PXI

Gaining software control over both instrument routing and real-time electrical fault insertion transforms the process. The principle is straightforward: switching modules sit between the simulator and the device under test (DUT), and either pass signals through unchanged or apply a range of fault conditions on command.

Most applications need at least these fault types modeled:

  • Open-circuit connections to the DUT
  • Short circuits between DUT pins
  • Short circuits to ground or power
  • Resistive faults

Rather than commit to a costly, proprietary, single-application HILS system that locks you to one supplier, you can build on the PXI standard using best-in-class modules. PXI is rugged, modular, and scalable, with chassis-level triggering and timing that supports the deterministic, real-time behavior fault insertion demands. Pickering Interfaces was the first vendor to introduce PXI switching designed specifically for fault insertion, offering scalable fault insertion units (FIUs) that replace the patch panel entirely.

Integrators such as Bloomy build on this foundation with their Universal Test System (UTS) platforms, combining PXI switching and simulation into standardized, reusable functional test architectures. That standardization is where the economics work in your favor. Reusing a common modular platform across programs eliminates redundant engineering, reduces non-recurring engineering (NRE) costs, and lets you carry the same test assets from prototype validation through to the production floor.

If switching noise is a concern, you can house FIUs in a separate Pickering LXI/USB chassis, away from sensitive instruments. The software drivers stay identical whether modules live in a PXI chassis or an LXI/USB chassis, so integration effort doesn’t change.

Simulating the Sensor Environment

Comprehensive HILS means simulating the full range of sensors an ECU expects to see. PXI-based modules cover the common transducer types found in automotive and EV designs:

  • Thermocouple simulation. Millivolt simulator modules provide 8 to 32 channels of accurate low-voltage sources across three ranges, covering most thermocouple types. Built-in relays let you simulate an open connection on each channel.
  • LVDT/RVDT/resolver simulation. A single-slot module can simulate up to four channels of 5/6-wire LVDT, RVDT, or resolver, or eight channels of 4-wire LVDT/RVDT. With excitation from 0.25 VRMS to 38 VRMS and 300 Hz to 20 kHz, it covers most devices in service. On-board relays add open- and short-circuit simulation on every input and output.
  • Current loop simulation. Analog output modules emulate 4–20 mA industrial control transceivers with programmable slew rates, multiple output modes, and built-in relays for shorts and opens on every channel. A full-isolation mode avoids ground loops.
  • Battery stack simulation. For EV Battery Management System (BMS) test, cell simulator modules provide two, four, or six isolated cells per module, accurate to ±5 mV from 1 V to 7 V. A 750 V isolation barrier supports series-stacked propulsion architectures.
  • Programmable resistors. With over 350 module variants, including units better than 0.1% accuracy and resolution under 2 mΩ, you can automate resistive fault insertion and RTD or strain gauge simulation under software control.

Scaling From Prototype to Production

For high pin-count designs, scaled-up FIU matrix modules based on the BRIC format handle complex sensor and control unit simulation, expandable in multiples of 20 or 31 channels. A single, consistent software driver supports the entire FIU and simulation range, so growing a system doesn’t mean rewriting test code.

ALT-Lab-Ad-1

Recent Articles