project8 / Pypeline

A python interface for the dripline slow control system.
Other
2 stars 0 forks source link

run_dpph error #35

Closed grybka closed 11 years ago

grybka commented 11 years ago

import of LoggedDataHandler failed, it is not available import of PlotMakingGui failed, it is not available import of PlotMakingGui failed, it is not available mean is: 0.033167 VDC std is: 0.0732089592946 VDC failed to interface with dvm Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1410, in call return self.func(*args) File "/home/project8/Dev/Pypeline/gpypeline.py", line 206, in dpph_lockin self.dpph_result = scripts.dpph_lockin(self.pype, self.guessval.get()) File "/home/project8/Dev/Pypeline/pypeline/scripts/dpph_lockin.py", line 94, in dpph_lockin stop_sigma=30, stop_volts=1.5) File "/home/project8/Dev/Pypeline/pypeline/scripts/dpph_lockin.py", line 59, in GetVoltages VDC.append(GetLockinValue(pype, freq)) File "/home/project8/Dev/Pypeline/pypeline/scripts/dpph_lockin.py", line 29, in GetLockinValue return float(out['final'].strip().strip('NDCV')) KeyError: 'final'

laroque commented 11 years ago

So what this is saying is that dripline didn't get a response from the DVM. I actually just experienced this issue myself trying to make sure everything is working. I have two thoughts: 1) This problem is a strong motivation to implement the lockout an instrument system I'd been planning, since it is possible we happened to do this at the same time and that's the problem. I've just tried it again and it seems to be failing again so maybe not. Either way I'd have thought dripline could handle this, but maybe the dvm cannot. Which brings me to... 2) Our communication with this DVM is relatively unreliable (note the 2 second sleep in the dpph scan). We should reconsider trying to use the continuous mode and/or see how Jared's dripline upgrade with continuous poling is going.

@kofron Jared, is that close to being useful on the DVM or will that still be some time? Does it make sense/is it possible for an instance of the new dripline to run that DVM and the old one to keep running everything else until you've finished making the upgrades/changes (it seems to me that the MUX is a pain in the ass and it may be easier to get this new system working for the DVM).

laroque commented 11 years ago

DPPH scans are now made using the lock-in amp directly, not the DVM. Some but not all of the error catching has been changed as well. Closing this issue, if problems persist I'll reevaluate the way things are being handled.