Skip to content

Commit

Permalink
added slot_mode_default to decadac channel (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik-Vogel authored and jenshnielsen committed Nov 1, 2017
1 parent a1beec9 commit 956ffe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qcodes/instrument_drivers/Harvard/Decadac.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ class DacSlot(InstrumentChannel, DacReader):
A single DAC Slot of the DECADAC
"""
_SLOT_VAL = vals.Ints(0, 5)
SLOT_MODE_DEFAULT = "Coarse"

def __init__(self, parent, name, slot, min_val=-5, max_val=5):
super().__init__(parent, name)
Expand Down Expand Up @@ -327,7 +328,7 @@ def __init__(self, parent, name, slot, min_val=-5, max_val=5):
val_mapping=slot_modes)

# Enable all slots in coarse mode.
self.slot_mode.set("Coarse")
self.slot_mode.set(DacSlot.SLOT_MODE_DEFAULT)

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

0 comments on commit 956ffe4

Please sign in to comment.