Inferensys

Glossary

I/O Board

An I/O (Input/Output) board is a specialized hardware interface card that provides analog, digital, and communication channels to connect a real-time simulator to physical hardware for Hardware-in-the-Loop (HIL) testing.
Developer reviewing multi-agent chat interface on laptop, agent conversation logs visible, casual coding session at WeWork desk.
HARDWARE-IN-THE-LOOP TESTING

What is an I/O Board?

A core hardware component in Hardware-in-the-Loop (HIL) testing systems that provides the critical electrical interface between a real-time simulator and physical hardware.

An I/O (Input/Output) board is a specialized hardware interface card that provides the analog, digital, and communication channels to electrically connect a real-time simulator to the physical pins and connectors of a device under test (DUT). It performs the essential signal conversion between the digital simulation environment and the real-world electrical domain, enabling closed-loop validation. Key functions include digital-to-analog conversion (DAC) for actuator commands and analog-to-digital conversion (ADC) for sensor feedback.

In a HIL test rack, multiple I/O boards are typically installed to handle diverse signal types required by the DUT, such as PWM signals, encoder quadrature pulses, CAN bus frames, and Ethernet packets. The board's drivers and a Hardware Abstraction Layer (HAL) integrate it with the real-time simulation software, allowing deterministic execution. This setup is fundamental for sensor emulation, actuator interfacing, and fault injection, providing a safe, repeatable, and accelerated testing environment before physical deployment.

HARDWARE-IN-THE-LOOP TESTING

Core Functions of an I/O Board

An I/O (Input/Output) board is the critical hardware interface that bridges a real-time simulator with the physical world, enabling Hardware-in-the-Loop (HIL) validation. Its core functions are to accurately translate digital simulation data into real electrical signals and vice versa.

01

Signal Translation & Conditioning

The primary role of an I/O board is to perform bidirectional signal translation between the digital simulation and the analog electrical domain of the Device Under Test (DUT). This involves:

  • Digital-to-Analog Conversion (DAC): Converting numerical values from the simulation into precise analog voltage or current outputs to emulate sensors.
  • Analog-to-Digital Conversion (ADC): Measuring real analog signals from the DUT's actuators (e.g., motor current) and converting them to digital values for the simulation.
  • Signal Conditioning: Amplifying, filtering, and isolating raw signals to ensure they match the voltage ranges, impedance, and noise immunity required for accurate, reliable testing.
02

Communication Protocol Emulation

Modern embedded systems communicate via specialized networks. I/O boards provide hardware-level emulation of these industrial protocols to test the DUT's communication stack in isolation.

  • Controller Area Network (CAN): Generating and monitoring CAN frames to simulate other Electronic Control Units (ECUs) on a vehicle network.
  • EtherCAT: Providing deterministic, low-latency Ethernet for synchronized control with distributed I/O nodes.
  • Serial Protocols: Emulating UART, SPI, or I2C for sensor/actuator communication.
  • Pulse-Width Modulation (PWM): Precisely generating and measuring PWM signals for motor and servo control.
03

Deterministic, Low-Latency I/O

For valid closed-loop HIL testing, the I/O response must be deterministic and exhibit minimal, bounded latency. The I/O board's design is optimized for this.

  • Real-Time Operation: Interfaces directly with the Real-Time Operating System (RTOS) on the simulator to guarantee I/O tasks execute within strict, sub-millisecond time windows.
  • Fixed I/O Latency: The time from simulation output to electrical signal (and vice versa) is consistent and measurable, enabling accurate latency compensation in the model.
  • Synchronization: Multiple I/O boards can be synchronized via a common clock (e.g., IRIG-B) to ensure coherent sampling and actuation across hundreds of channels.
04

Fault Injection & Safety Testing

A key advantage of HIL is safely testing system responses to failures. I/O boards are engineered to deliberately inject faults.

  • Analog Faults: Simulating sensor failures like short-to-battery, short-to-ground, signal drift, or open circuits.
  • Digital Faults: Injecting bit errors, corrupting communication messages (e.g., CAN error frames), or stalling PWM outputs.
  • Programmable Relays: Integrated relays can physically reconfigure signal paths to mimic wiring harness faults. This validates the DUT's diagnostic and fail-safe mechanisms without damaging physical prototypes.
05

Integration with Simulation Software

The I/O board is not standalone; it is managed by a software layer that integrates it with the real-time simulation model.

  • Hardware Abstraction Layer (HAL): Provides a uniform software API (e.g., in dSPACE or NI VeriStand) to configure I/O channels, regardless of the underlying hardware.
  • Model I/O Mapping: Simulation variables (e.g., engine_rpm) are graphically mapped to specific physical channels on the I/O board (e.g., Analog Out, Ch. 3).
  • Data Acquisition: Streams time-synchronized I/O data to the host PC for real-time visualization, logging, and automated test assessment via the test harness.
06

Scalability & Form Factors

I/O boards are designed to scale from testing a single microcontroller to validating a full vehicle network.

  • Modular Systems: Platforms like NI PXI or dSPACE SCALEXIO allow mixing and matching I/O cards (analog, digital, CAN, etc.) in a single chassis.
  • High-Density I/O: A single board can provide dozens to hundreds of channels, supporting complex systems.
  • Compact & Ruggedized Options: Form factors range from benchtop units for R&D to ruggedized chassis for production-line end-of-line testing. This scalability makes the I/O board the foundational hardware for building a Digital Twin for validation.
HARDWARE INTERFACE

How an I/O Board Works in a HIL Loop

An I/O (Input/Output) board is the critical physical bridge in a Hardware-in-the-Loop (HIL) test system, converting digital simulation data into real electrical signals and vice versa.

The I/O board is a specialized interface card installed in a real-time simulator. It provides the analog, digital, and communication channels—such as CAN, EtherCAT, or PWM—required to physically connect to the Device Under Test (DUT). During operation, the simulator's plant model calculates outputs, which the I/O board converts into precise voltage, current, or network messages sent to the DUT's pins. Conversely, it measures the DUT's electrical responses, digitizes them, and feeds the values back into the simulation, closing the real-time loop.

This bidirectional signal conversion must occur with extreme determinism and minimal latency to maintain simulation fidelity. The board performs essential signal conditioning, including amplification, filtering, and isolation, to match electrical characteristics. It also enables critical test functions like sensor emulation and fault injection. The Hardware Abstraction Layer (HAL) software provides a uniform API, allowing test engineers to map simulation variables to specific I/O channels without deep hardware knowledge, streamlining test development and execution.

HARDWARE INTERFACE

Common I/O Board Signal Types and Their Uses

A comparison of the primary electrical signal types provided by I/O boards for Hardware-in-the-Loop (HIL) testing, detailing their characteristics and typical applications in connecting real-time simulators to physical hardware.

Signal TypeDescription & CharacteristicsTypical Voltage/Current RangePrimary Use Cases in HIL

Analog Input (AI)

Measures a continuous voltage or current signal from a sensor or device under test (DUT). High-resolution ADC required for fidelity.

±10 V, 0-20 mA, 4-20 mA

Reading potentiometers, temperature sensors, pressure transducers, battery voltage.

Analog Output (AO)

Generates a precise, continuous voltage or current signal to emulate a sensor or provide a control setpoint to the DUT.

±10 V, 0-20 mA

Emulating sensor signals (e.g., throttle position), providing reference signals, driving analog gauges.

Digital Input (DI)

Reads a discrete, binary state (ON/OFF) from a switch, relay, or digital output of the DUT. May include debouncing and edge detection.

0-5 V, 0-24 V (TTL, CMOS)

Reading switch states, button presses, relay contacts, fault flags, PWM signal detection.

Digital Output (DO)

Drives a discrete, binary state to control an LED, relay, or solenoid, or to emulate a discrete actuator. Often includes high-side/low-side switching.

0-5 V, 0-24 V, up to 2 A per channel

Controlling indicator lights, relays, solenoids, injecting fault conditions (short/open).

PWM Input/Output

Measures or generates Pulse-Width Modulation signals for duty cycle control. Requires high-frequency counters/timers.

0-5 V, 0-24 V, 1 kHz - 20 kHz

Reading motor encoder signals, RC servo control, emulating speed sensors, testing motor controllers.

Counter/Timer I/O

Counts digital pulses or measures frequency/period. Used for high-speed event counting or precise time measurement.

TTL/CMOS compatible

Reading rotary encoder quadrature signals, measuring RPM, frequency analysis of sensor outputs.

CAN Interface

Controller Area Network transceiver for serial communication. Essential for automotive/industrial HIL.

Differential: CAN_H ~2.75V, CAN_L ~2.25V

Simulating ECU networks, monitoring DUT CAN traffic, injecting error frames, logging bus data.

Ethernet (TCP/IP, UDP)

Standard Ethernet port for non-real-time communication, often used for data logging, test sequencing, and model updates.

100/1000BASE-T

Host PC communication, streaming test data, integrating with CI/CD pipelines, ROS/ROS2 bridging.

EtherCAT, PROFINET

Deterministic Industrial Ethernet protocols for hard real-time, synchronized communication with distributed I/O or drives.

100BASE-TX

Synchronizing multi-chassis HIL systems, interfacing with smart drives, high-speed distributed control.

Relay Output (Form A/C)

Electromechanical or solid-state relays for isolating or switching higher power/voltage signals. Used for fault injection.

Up to 250 VAC/VDC, 2-10 A

Injecting hard faults (short-to-battery, short-to-ground), load switching, safety interlocking.

HARDWARE ECOSYSTEM

Common I/O Board Platforms and Providers

I/O boards are the critical physical interface in Hardware-in-the-Loop (HIL) systems, connecting the real-time simulator to the Device Under Test (DUT). Major vendors offer integrated hardware and software platforms with specialized I/O cards for analog, digital, and communication protocols.

06

Open-Source & Custom Solutions

For specialized applications, engineers may build custom HIL interfaces using commercial off-the-shelf components or open-source frameworks.

  • Components: Arduino or Raspberry Pi with add-on shields for basic I/O, Moxa industrial communication gateways, or Advantech PCIe DAQ cards.
  • Software Frameworks: Integration with ROS/ROS 2 via custom bridges, or using real-time Linux (PREEMPT_RT patch) with a custom Hardware Abstraction Layer (HAL).
  • Use Case: Prototyping, academic projects, or integrating unique sensors/actuators not supported by commercial vendors.
HARDWARE-IN-THE-LOOP TESTING

Frequently Asked Questions

An I/O (Input/Output) board is the critical hardware interface that connects a real-time simulator to the physical world, enabling Hardware-in-the-Loop (HIL) testing. These FAQs address its core functions, technical specifications, and role in validating robotic and autonomous systems.

An I/O (Input//Output) board is a specialized hardware interface card that provides the analog, digital, and communication channels to physically connect a real-time simulator to the pins and connectors of the hardware under test (HUT), such as a robot's main controller or an Electronic Control Unit (ECU). It acts as the bidirectional bridge between the digital simulation and the physical hardware, converting simulated sensor signals into real electrical outputs and measuring real actuator commands to feed back into the simulation. This closed-loop is the foundation of Hardware-in-the-Loop (HIL) validation, allowing engineers to test embedded software against a high-fidelity virtual environment before physical deployment.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.