Skip to content

Commit

Permalink
Agilent B29xx -> Pulse is triggered in phase 'measure', obsolete case…
Browse files Browse the repository at this point in the history
…-check (if self.pulse) removed. commented print() removed
  • Loading branch information
afischer-sweepme committed Aug 26, 2024
1 parent 94295b2 commit a69567b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/SMU-Agilent_B29xx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def set_GUIparameter(self):
return gui_parameter

def get_GUIparameter(self, parameter={}):
#print(parameter)

self.four_wire = parameter['4wire']
self.source = parameter['SweepMode']
Expand Down Expand Up @@ -425,14 +424,20 @@ def apply(self):
if self.source.startswith("Voltage"):
self.port.write(":SOUR%s:VOLT:STAR %s" % (self.channel, value))
self.port.write(":SOUR%s:VOLT:STOP %s" % (self.channel, value))
# releasing the pulse trigger
self.port.write(":INIT (@%s)" % self.channel)

# pulse is finally triggered in 'measure' phase
# in 'apply' the pulse is only setup

else:
# set output to specified values
self.port.write(":SOUR%s:%s %s" % (self.channel, self.commands[self.source], value))

def measure(self):

if self.pulse:
# releasing the pulse trigger, just at the moment when the measurement should be performed
self.port.write(":INIT (@%s)" % self.channel)

def call(self):

if self.pulse:
Expand All @@ -455,7 +460,6 @@ def call(self):
opcounter += 1
time.sleep(0.5)

if self.pulse:
self.port.write(
":FETC:ARR? (@%s)" % self.channel) # get measured values taken during pulse release out of the memory
else:
Expand Down

0 comments on commit a69567b

Please sign in to comment.