Skip to content
Snippets Groups Projects
Commit 8a4d5b9c authored by JupyterHub User's avatar JupyterHub User
Browse files

implemented methods for compliance of variable smus

parent 8160c117
No related branches found
No related tags found
No related merge requests found
...@@ -171,3 +171,17 @@ class HP4155a(object): ...@@ -171,3 +171,17 @@ class HP4155a(object):
values[i] = float(values[i]) values[i] = float(values[i])
return values return values
# these are commands for the compliance
#set the power compliance for VAR1 and VAR2
def pcomp(self,variable,value):
command = f":PAGE:MEAS:{variable}:PCOM {value}"
self.inst.write(command)
#set normal compliance for VAR1 and VAR2
def comp(self,variable,value):
command = f":PAGE:MEAS:{variable}:COMP {value}"
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