Installation¶
Requirements¶
- Python 3.8 or later
- pip
Install from PyPI¶
This installs the scpi-repl command and all required dependencies automatically.
Install from source¶
git clone https://github.com/T-O-M-Tool-Oauto-Mationator/scpi-instrument-toolkit.git
cd scpi-instrument-toolkit
pip install -e .
Platform notes¶
Python installers from python.org include pip. During installation, check "Add Python to PATH".
After installation, verify:
If scpi-repl is not recognised after install, see Troubleshooting.
Install Python via Homebrew (recommended):
Or download the macOS installer from python.org.
Serial instruments communicate via device files (/dev/ttyUSB*, /dev/ttyACM*) owned by the dialout group — your user must be a member. See Troubleshooting.
Serial instruments communicate via device files (/dev/ttyUSB*, /dev/ttyACM*) owned by the uucp group — your user must be a member. See Troubleshooting.
Optional extras¶
| Extra | Command | Purpose |
|---|---|---|
| NI PXIe-4139 SMU | pip install nidcpower |
NI DCPower driver for PXIe SMU — required only if you have NI PXIe-4139 hardware |
| Docs build | pip install "scpi-instrument-toolkit[docs]" |
Build HTML docs locally with MkDocs |
| Test suite | pip install "scpi-instrument-toolkit[test]" |
Run unit/integration tests |
Verify the installation¶
This launches the REPL with simulated instruments — no hardware required. Type help for available commands.