NI PXI vs serial and GPIO for embedded hardware testing
By DataDemon · Reviewed 22 November 2026
Did the firmware recognise an input? A digital pin and a serial reply can answer that, and DataDemon Tunnel lets a GitHub Actions job run the check on your lab board. How long did an analogue output take to settle? That calls for a timed measurement with suitable instruments, such as an NI PXI system.
For embedded firmware developers and test engineers
Two tests for a pump controller
Suppose a firmware change affects a pump’s low-level alarm. A developer wants to know whether the controller reports the alarm when its input changes. The lab also needs to measure how quickly the analogue output settles. Only the second test needs time-correlated acquisition.
Test job
Arm the alarm check over serial.
Linux gateway
Change the fixture’s level-sensor input.
Pump controller
Report the low-level alarm over serial.
A matching alarm reply passes the firmware assertion. The PXI bench records the output waveform for the settling-time test.
The pump is an illustrative design. DataDemon’s demonstrated fixture used a Pi 1B and an Uno in three supervised GitHub Actions runs. The beta workflow needs an approved source, a configured Linux GPIO bank, hardware CI enabled at the edge and a verified Linux x86-64 job image. Tested setup and fixture limits.
Which setup fits your test?
| Test question | Bench equipment | Remote engineer’s task |
|---|---|---|
| Does the board boot the expected firmware? | Serial adapter | Query the board from CI and check its ID and version. |
| Does firmware recognise a digital input? | Protected GPIO fixture and serial port | Apply one approved stimulus and match the board’s reply. |
| Do several signals meet tolerance after a trigger? | Triggered acquisition with suitable modules and signal conditioning | Review the data captured at the bench. |
| Does a controller meet deadlines in a simulated system? | Real-time hardware-in-the-loop (HIL) system | Review the result of the locally executed test. |
NI VeriStand supports real-time HIL simulation. DataDemon’s serial and GPIO workflow covers functional checks on compatible devices. NI VeriStand · DataDemon features.
What the NI PXIe-1081 and PXIe-6509 provide
The PXIe-1081 is a chassis with one controller slot, 17 hybrid peripheral slots and up to 2 GB/s of system bandwidth. The installed modules determine which signals you can generate or measure. NI chassis catalogue.
The PXIe-6509 provides 96 channels of 5 V digital I/O. A Pi fixture for a single input still needs compatible voltage levels, protection and a known state on power loss. When budgeting a bench, include the controller, modules, cabling, fixture work, software and any required calibration. NI PXIe-6509 specifications.
Fixture and session questions
Can the two tests share a live controller?
Coordinate with the station operator. A serial session reserves one port. Acquiring it does not reserve the GPIO bank or the PXI station.
What if the bench connection drops during a stimulus?
Treat the physical result as uncertain. Check the fixture state and confirm that the resources have been released before starting a fresh run.
Try the check on your bench
Already have a passing local test? Run the serial check from GitHub Actions. For a rack that already takes the measurements, see remote access to an NI PXI test bench.