Commit 0b899317 authored by Christian Schneider's avatar Christian Schneider
Browse files

Adapted to Python 3.9 and pyvisa

parent 4c3fc0ba
......@@ -188,7 +188,7 @@ class B29XX(object):
raise Exception('MODERR')
else:
if mode is 0:
if mode == 0:
self.com(cmd, 'ZERO')
else:
self.com(cmd, 'HIZ')
......
......@@ -8,7 +8,7 @@ Date: 06.10.2017
"""
from IPLIST import IPList
import sys
import visa
import pyvisa as visa
try:
from Monitor.functions import update_db, check_db
......@@ -320,7 +320,7 @@ def SG_multi(id_string, cryostat, channel_list, timeout=1800, driver=None,
raise Exception('SG not in IPList.')
# Connect to device
rm = visa.ResourceManager()
rm = visa.ResourceManager("@py")
instr = rm.open_resource('TCPIP::{}::INSTR'.format(ip))
# Create objects for each channel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment