Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hardware-in-loop-reference

БесплатноБез исполняемых скриптовНе проверен

Use when scoping an embedded hardware-in-the-loop (HIL) rig or reading an automotive, aerospace or industrial HIL report: MIL, SIL, PIL and HIL stages, NI…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

hardware-in-loop-reference

Overview

Hardware-in-the-loop (HIL) is, per en.wikipedia.org/wiki/Hardware-in-the-loop_simulation, "a technique that is used in the development and testing of complex real-time embedded systems" that "provides an effective testing platform by adding the complexity of the process-actuator system, known as a plant, to the test platform". In practice it means: the production ECU runs production firmware against a real-time simulator that emulates the rest of the vehicle / aircraft / machine in closed loop, with the same electrical interfaces the ECU sees in the field.

This skill is a pure reference consumed by the per-tool skills (googletest-embedded-arm, unity-test-framework-c, qemu-system-test-runner) when teams need to decide what slips into HIL versus what stays in host / QEMU.

When to use

  • Scoping a new HIL rig - what hardware, what protocols, what level of plant fidelity.
  • Reading an HIL test report from a vendor (NI / dSPACE / Vector / Speedgoat) and translating their proprietary terms.
  • Negotiating the V-model split (MIL / SIL / PIL / HIL) with safety engineering.
  • Pairing HIL coverage with structural coverage from embedded-coverage-strategy-reference.
  • Specifying fault-injection scenarios for a safety case.

The HIL pattern

+-------------------+         analog/digital I/O      +-------------------+
|                   | <----------------------------- |                   |
|  Real-time        |   CAN / CAN-FD / LIN / FlexRay |  ECU under test   |
|  plant simulator  | <----------------------------- |  (production       |
|  (vehicle / motor |                                |  firmware,         |
|  / battery model) | -----------------------------> |  production HW)    |
|                   |   wheel speed, temp, voltage,  |                   |
+-------------------+   pedal position, error codes  +-------------------+
        |
        | fault injection: short-to-ground / open / corrupt-bus / drift
        v
   Test sequencer + scenario scripts

Per Wikipedia (citation above), the rig "must include electrical emulation of sensors and actuators" - that emulation is what distinguishes HIL from pure software simulation. The ECU sees voltage / current / bus traffic, not numbers in RAM.

V-cycle: MIL → SIL → PIL → HIL

Stage Plant Controller Where it runs
MIL (Model-in-the-loop) Simulink model Simulink model Host PC, Simulink simulation
SIL (Software-in-the-loop) Simulink model C/C++ auto-generated from controller model Host PC, native compile
PIL (Processor-in-the-loop) Simulink model on host C/C++ cross-compiled, running on the production processor Eval board + host
HIL (Hardware-in-the-loop) Real-time plant model on real-time target Production firmware on production ECU Production hardware + real-time simulator

(The terms MIL / SIL / PIL / HIL are not in Wikipedia's HIL article but are universal in automotive ECU verification - cite by stable term "automotive V-model verification stages".) Each stage tightens the realism by replacing one block with the real artefact. HIL is the last gate before SOP (Start Of Production) sign-off.

Vendor stack at a glance

Vendor product pages are largely gated (Cloudflare / login walls); cited by stable ID.

Vendor Real-time target Test authoring Notable strength
NI PXI chassis + R-Series FPGA / CompactRIO VeriStand (System Definition .nivssdf, stimulus profiles, real-time sequence) + TestStand orchestrator Strong on FPGA-precision I/O; tight Simulink import. Cite "NI VeriStand 2024 System Definition File Reference"
dSPACE SCALEXIO / MicroAutoBox ControlDesk + AutomationDesk De-facto in automotive Tier 1s; AUTOSAR-aware. Cite "dSPACE SCALEXIO 2024 / ControlDesk 2024 Help"
Vector VT System (rack) + VT instrument cards CANoe with CAPL test scripting + vTESTstudio test authoring Bus-traffic-centric (CAN / CAN-FD / LIN / FlexRay / Ethernet / SOME-IP). Cite "Vector CANoe 17 User Manual"
Speedgoat Performance / Mobile / Baseline real-time targets Simulink Real-Time test harnesses Tight MathWorks integration; xPC-Target descendant
OPAL-RT OP4510 / OP5707 RT-LAB + eMEGAsim Power electronics / grid; sub-microsecond loops

The reader should treat vendor choice as a procurement decision, not a technical one - all the vendors support the core HIL pattern. Vendor differentiation is in I/O density, FPGA latency, and which test-authoring language the team has skill in (CAPL for Vector, LabVIEW for NI, Simulink for Speedgoat).

Bus emulation per protocol

Protocol Speed Topology HIL-relevant notes
CAN classical (ISO 11898-1) 1 Mbit/s Multi-master bus Standard ECU bus; nearly all rigs incl
Полный SKILL.md на GitHub

Установить hardware-in-loop-reference в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.json

FAQ

Что делает скилл hardware-in-loop-reference?

Use when scoping an embedded hardware-in-the-loop (HIL) rig or reading an automotive, aerospace or industrial HIL report: MIL, SIL, PIL and HIL stages, NI, dSPACE, Vector and Speedgoat stacks, CAN, LIN, FlexRay and Ethernet emulation, fault injection and ISO 26262, DO-178C and IEC 61508 evidence.

Как установить скилл hardware-in-loop-reference?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hardware-in-loop-reference запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hardware-in-loop-reference с