Lab Automation
Most of the lab equipments support Ethernet connection, and it is possible to programmatically control the equipments with Standard Commands for Programmable Instruments (SCPI) protocol.
Here's a Python wrapper for the SCPI protocol. Various instruments will be added to this library.
Note: Most of the instruments use TCP socket connection on port 5025, but this is not specified by the spec, and may differ.
SIGLENT SPD3303X-E
port: 5025
https://siglentna.com/wp-content/uploads/dlm_uploads/2022/11/SPD3303X_QuickStart_E02A.pdf
Example
import time
from cc.scpi import SiglentSPD3303X
device = SiglentSPD3303X("128.32.62.100")
device.connect()
print(device.getInstrumentIdentification())
device.setVoltage(0.1, device.Channel.CH1)
device.enableOutput(device.Channel.CH1)
time.sleep(1)
print(device.getVoltage(device.Channel.CH1))
print(device.getCurrent(device.Channel.CH1))
print(device.getPower(device.Channel.CH1))
device.disableOutput(device.Channel.CH1)
Keysight 81134A
port: 5025
https://www.keysight.com/us/en/assets/9018-02477/programming-guides/9018-02477.pdf
Example
import time
from cc.scpi import Keysight81134A
device = Keysight81134A("128.32.62.102")
device.connect()
print(device.getInstrumentIdentification())
device.enableOutput(Keysight81134A.Channel.CH1)
device.disableOutput(Keysight81134A.Channel.CH1)
EagleX Bench Initialize Script
import time
Last updated
Was this helpful?