Refactor: rename SimDUT, restructure DUT simulation and test flow
This commit is contained in:
31
docs/hardware.rst
Normal file
31
docs/hardware.rst
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user