Skip to content

Commit

Permalink
add function to measure diff/single ended signal
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbarrier committed Dec 3, 2021
1 parent 32394c9 commit 0a54b7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions mesoscopy/instrument/lockin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,22 @@ def enable_DC(station: Station):


def disable_DC(station: Station):
lockins = []
for name, itm in station.components.items():
if isinstance(itm, Instrument):
if itm.__class__ == zhinst.qcodes.mfli.MFLI:
lockins.append(name)

lockins = _list_lockins(station)
for lockin in lockins:
station.__getattr__(lockin).sigins[0].ac(1)
print(f'DC disabled for {lockins}')

def measure_diff(station: Station):
lockins= _list_lockins(station)
for lockin in lockins:
station.__getattr__(lockin).sigins[0].diff(1)
print(f'measure A-B signal for {lockins}')

def measure_single_ended(station: Station):
lockins = _list_lockins(station)
for lockin in lockins:
station.__getattr__(lockin).sigins[0].diff(0)
print(f'measure single end A signal for {lockins}')

def _list_lockins(station: Station):
lockins = []
Expand Down
2 changes: 1 addition & 1 deletion mesoscopy/instrument/magnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ def ramp_temperature_to(self, value: float) -> None:
temp_instant = self.parameters[chan]()
self._autoselect_pid(rangetemp[i-1], rangetemp[i])
self._autoselect_sensor(rangetemp[i-1], rangetemp[i])
self._autoselect_heater_range(temp_instant)
self._autoselect_turbo(temp_instant)
self._autoselect_stillhtr(temp_instant)
self._autoselect_valves(temp_instant)
self.pid_setpoint(rangetemp[i])
self._autoselect_heater_range(temp_instant)
while self.parameters[chan]() < .95*rangetemp[i]:
sleep(10)
if rangetemp[i] == .8:
Expand Down

0 comments on commit 0a54b7c

Please sign in to comment.