Wrapper for several GPIB controllable devices.
(work in progress)
The goal of this project is, to enable easy scripting of measurement procedures using a higher abstracction layer for GPIB devices.
Efficiency curve of a 12V to 5V DC/DC converter. Measured using the NGMO2.
import time
import interface.prologix_gpib as prologix
import devices.schlumberger_7150plus as schlumberger
import numpy as np
import matplotlib.pyplot as plt
iface = prologix.usb(com='ASRL31::INSTR', baudrate=19200, timeout=5000)
iface.loc() # Lokaler Modus
schlumi = schlumberger.device(iface, 13)
values = np.zeros(100) # leeres Array mit 100 Werten
for i in range(0, len(values)):
schlumi.trigger() # single shot
values[i] = schlumi.read() # Wert lesen
time.sleep(0.1) # 100ms warten
plt.plot(values) # plotten
plt.ylabel('U [V]')
plt.xlabel('Messung Nr.')
import interface.prologix_gpib as prologix
import devices.rohde_schwarz_ngmo2 as ngmo
iface = prologix.usb(com='ASRL1::INSTR', baudrate=19200, timeout=2000)
battery = ngmo.device(iface, 7) # ngmo at address 7
battery.set_voltage('A', 12.4) # set to 12.4 V
battery.set_output('A', True) # turn on
Multimeter
- HP 3455A 5 or 6-Digit Digital Multimeter/Voltmeter
- HP 3456A 6 1/2 Digit Digital Multimeter
- Schlumberger 7150plus Digital Multimeter
- Rohde & Schwarz NGMO2 Dual-Channel Analyzer/Power Supply
PSU
- HP 6632A, 6633A, 6634A DC Power Supply
- HP 6621A-6624A, 6627A / 6625A, 6626A, 6628A, 6629A DC Power Supplies