Skip to content

Commit

Permalink
HACK: hardcode scope settings because setting them in the main driver…
Browse files Browse the repository at this point in the history
… does not work

This breaks all other scope fucs for now
  • Loading branch information
jana-d authored and jenshnielsen committed Mar 24, 2017
1 parent 16bc8f5 commit cb977ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qcodes/instrument_drivers/ZI/ZIUHFLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,11 @@ def get(self):
self._instrument.daq.sync()
# Create a new scopeModule instance (TODO: Why a new instance?)
scope = self._instrument.daq.scopeModule()

# TODO We are hard coding scope mode and avg weight here because the setting
# in the main driver references a different scope which will fail and give garbage data
# YOU cannot set other scope modes or weights at the moment
scope.set('scopeModule/mode', 1)
scope.set('scopeModule/averager/weight', 1)
# Subscribe to the relevant... publisher?
scope.subscribe('/{}/scopes/0/wave'.format(self._instrument.device))

Expand Down

0 comments on commit cb977ca

Please sign in to comment.