Files
dut_pytest/docs/hardware.rst

32 lines
697 B
ReStructuredText

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