diff options
Diffstat (limited to 'run.py')
-rw-r--r-- | run.py | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -3,6 +3,7 @@ from qolab.hardware.multimeter.bk_5491 import BK_5491 from qolab.hardware.multimeter.hp_34401 import HP_34401 from qolab.hardware.vacuum_gauge.mks390 import MKS390 from qolab.hardware.power_supply.psw25045 import PSW25045 +from qolab.hardware.power_supply.gpp3610h import GPP3610H from qolab.hardware.scope.sds800xhd import SDS800XHD @@ -15,7 +16,7 @@ if __name__ == "__main__": import matplotlib.pyplot as plt import time - #mpl.style.use('custom-style') + mpl.style.use('custom-style') rm = pyvisa.ResourceManager() address_dict = { @@ -24,7 +25,8 @@ if __name__ == "__main__": 'dmm_hp': 'visa://192.168.194.15/ASRL9::INSTR', 'dmm_bk': 'visa://192.168.194.15/ASRL12::INSTR', 'vacgauge': 'visa://192.168.194.15/ASRL13::INSTR', - 'psu_anode': 'visa://192.168.194.15/ASRL10::INSTR' + 'psu_anode': 'visa://192.168.194.15/ASRL10::INSTR', + 'psu_disp': 'TCPIP0::192.168.2.213::1026::SOCKET' } #---------------------------------------------- # Open visa resources and initialize intruments @@ -50,6 +52,11 @@ if __name__ == "__main__": psu_anode = PSW25045( rm.open_resource(address_dict['psu_anode']) ) + + psu_disp = GPP3610H( + rm.open_resource(address_dict['psu_disp']) + ) + #----------------------------------------------- # Get DMM readings @@ -62,9 +69,18 @@ if __name__ == "__main__": print(psu_anode.get_idn()) psu_anode.set_voltage(5) psu_anode.enable_output(True) - time.sleep(20) + time.sleep(2) psu_anode.enable_output(False) - trace = scope.getTrace(4) - trace.plot() + print(psu_disp.get_idn()) + psu_disp.set_voltage(0.2) + psu_disp.enable_output(True) + time.sleep(3) + print(psu_disp.get_out_current()) + print(psu_disp.get_out_voltage()) + time.sleep(2) + psu_disp.enable_output(False) + + #trace = scope.getTrace(4) + #trace.plot() plt.show()
\ No newline at end of file |