Skip to content

Commit

Permalink
Limited sweep range for voltage set commands, such that uncompleted r…
Browse files Browse the repository at this point in the history
…amps don't ramp. Also triggers are reset.qutech#109
  • Loading branch information
INSTITUT2B\lab2 authored and paulsurrey committed Nov 4, 2024
1 parent 36ce060 commit 6c5a9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qumada/instrument/custom_drivers/Harvard/Decadac.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def _set_dac(self, code):
else:
code = int(code)
self._set_channel()
self.ask_raw(f"U65535;L0;D{code};")
self.ask_raw(f"S0;G0;U{code};L{code};D{code};")

def _script_set_dac(self, code):
"""
Expand All @@ -442,7 +442,7 @@ def _script_set_dac(self, code):

code = int(code)
self._script_set_channel()
self.ask_raw(f"U65535;L0;D{code};")
self.ask_raw(f"S0;G0;U{code};L{code};D{code};")

def write(self, cmd):
"""
Expand Down

0 comments on commit 6c5a9b8

Please sign in to comment.