Refactor: rename SimDUT, restructure DUT simulation and test flow

This commit is contained in:
2025-07-21 15:57:15 -06:00
parent 27064417dd
commit 4a1f943126
28 changed files with 750 additions and 5 deletions

31
docs/hardware.rst Normal file
View File

@@ -0,0 +1,31 @@
Real Hardware Integration
=========================
This page describes how to implement real instrument interfaces.
Backends
--------
Interfaces expected:
- Serial-based DUT communication
- SCPI commands over USB or LAN
- Future support for Modbus, I2C, or CAN (if needed)
Adding a Real DUT
------------------
1. Create a `RealDUT` class in `src/instruments/dut_controller.py`
2. Match the interface used in `SimDUT`
3. Uncomment the fixture in `conftest.py` to enable
.. code-block:: python
# return RealDUT(port="/dev/ttyUSB0")
Safety Tips
-----------
- Use proper delays when enabling outputs
- Confirm settings before triggering loads
- Log all commands during development