def connect(self, visaAddr): self.rm = visa.ResourceManager() self.instrument = self.rm.open_resource( visaAddr) #need the "GPIB::" thingy print(self.instrument.ask( "*IDN?")) #Requests the device for identification self.connected = True
def connect(self, visaAddr): self.rm = visa.ResourceManager() self.instrument = self.rm.get_instrument(visaAddr) self.instrument.read_termination = '\n' self.instrument.write_termination = '\n' print(self.instrument.ask('*IDN?') ) #Requests the device for identification self.connected = True
def __init__(self, visaAddr): self.rm = visa.ResourceManager() self.instr = self.rm.get_instrument(visaAddr) # self.reset('a') # self.reset('b') self.instr.write('smua.nvbuffer1.clear()') self.instr.write('smub.nvbuffer1.clear()') self.instr.write('smub.nvbuffer1.appendmode = 0') self.instr.write('smua.nvbuffer1.appendmode = 0') # self.instr.values_format.container = numpy.array # self.instr.values_format.separator = ',' self.instr.chunk_size = 102400 print(self.instr.ask('*IDN?\n') ) #Requests the device for identification self.instr.clear()
def connect(self, visaAddr): # Connects to the laser device self.rm = visa.ResourceManager() self.instrument = self.rm.open_resource(visaAddr) print(self.instrument.query("*IDN?")) self.connected = True
def connect(self, visaAddr): self.rm = visa.ResourceManager() self.instrument = self.rm.get_instrument(visaAddr) print(self.instrument.ask("*IDN?") ) #Requests the device for identification self.connected = True
def __init__(self, address): rm = visa.ResourceManager() self.inst = rm.open_resource(address) print(self.inst.ask("*IDN?"))
def connect(self, visaAddr): self.rm = visa.ResourceManager() self.instrument = self.rm.open_resource(visaAddr) print(self.instrument.query('*IDN?')) self.connected = True