Skip to content
Snippets Groups Projects
Commit 88add1e8 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

Implemented an operation complete function to run all cells together(works...

Implemented an operation complete function to run all cells together(works only in the  i-v measurement)
parent 97aae39e
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,10 @@ class HP4155a(object):
return self.inst.query(":SYST:ERR?")
def operation_completed(self):
return self.inst.query('*OPC?')
text = self.inst.query('*OPC?')
text = text.replace('\n','')
finished = bool(text)
return finished
def show_variables(self):
return self.inst.query(":DATA:CAT?")
......
This diff is collapsed.
No preview for this file type
This diff is collapsed.
......@@ -6,6 +6,7 @@ class HP4155a(object):
self.adress = adress
self.rm = pyvisa.ResourceManager()
self.inst = self.rm.open_resource(adress)
self.inst.timeout = None
def idn(self):
return self.inst.query("*IDN?")
......@@ -69,7 +70,10 @@ class HP4155a(object):
return self.inst.query(":SYST:ERR?")
def operation_completed(self):
return self.inst.query('*OPC?')
text = self.inst.query('*OPC?')
text = text.replace('\n','')
finished = bool(text)
return finished
def show_variables(self):
return self.inst.query(":DATA:CAT?")
......@@ -146,3 +150,7 @@ class HP4155a(object):
def constant_smu_sampling(self,number,value):
command =f":PAGE:MEAS:SAMP:CONS:SMU{number} {value}"
self.inst.write(command)
def measurement_mode(self,mode):
command =f":PAGE:CHAN:MODE {mode}"
self.inst.write(command)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment