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

added linear logarithmic scale to axes

parent 6148dfb4
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class HP4155a(object):
self.rm = pyvisa.ResourceManager()
self.inst = self.rm.open_resource(adress)
self.inst.timeout = None
#----------------------------------------------------General functions--------------------------------------------------------------------------
def idn(self):
return self.inst.query("*IDN?")
......@@ -16,7 +16,7 @@ class HP4155a(object):
def reset(self):
self.inst.write("*RST")
#------------------------------------------------------stress functions--------------------------------------------------------------------
#smu mode
def smu_mode(self,smu_number,mode):
command = f":PAGE:STR:SMU{smu_number}:MODE {mode}"
......@@ -78,7 +78,7 @@ class HP4155a(object):
def show_variables(self):
return self.inst.query(":DATA:CAT?")
#sweep functions
#-----------------------------------------------------------sweep functions---------------------------------------------------------------
def smu_disable_sweep(self,number):
command= f":PAGE:CHAN:SMU{number}:DIS"
self.inst.write(command)
......@@ -118,7 +118,7 @@ class HP4155a(object):
:PAGE:CHANnels[:CDEFinition]:SMU<n>:DISable
Important! we dont set a value for smu1.'''
#sampling measure functions part2 first goal
#----------------------------------------------------------------------sampling measure functions part2 first goal----------------------------
''' some instructions
we need linear log10, log25 and thinned out (one function also log50 can be selected) SCPI COMMAND: :PAGE:MEASure:SAMPling:MODE
......@@ -181,7 +181,7 @@ class HP4155a(object):
return values
# these are commands for the compliance
#------------------------------------------ these are commands for the compliance-----------------------------------------------------------
#set the power compliance for VAR1 and VAR2
def pcomp(self,variable,value):
......@@ -219,6 +219,11 @@ class HP4155a(object):
command=f":PAGE:DISP:GRAP:{axis}:NAME '{variable}'"
self.inst.write(command)
#linear logarithmic scale for axis
def axis_scale(self,axis,scale):
command = f":PAGE:DISP:GRAP:{axis}:SCAL {scale}"
self.inst.write(command)
def display_variable_min_max(self,axis,extremum,value):
command = f":PAGE:DISP:GRAP:{axis}:{extremum} {value}"
self.inst.write(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment