python-seabreeze icon indicating copy to clipboard operation
python-seabreeze copied to clipboard

QE Pro -- data transfer error

Open dpmchugh opened this issue 2 years ago • 1 comments

spectrometer and system information

  • model: QE Pro
  • operating system: Windows 10 -- 64 bit
  • python version: 3.8.3
  • python-seabreeze version: 1.3.0
  • installed-via: pip

current problem

QE Pro runs fine for an hour or so, but then halts the script and produces a "data transfer error" (similar to issue #69). See the attached image below -- I believe it's coming from the cseabreeze._wrapper.

steps to reproduce

  1. close out of Anaconda Prompt
  2. unplug/replug the QE Pro
  3. restart script (then program runs for another couple hours before encountering this error

minimal code example and error (very helpful if available)

dpmchugh avatar Jul 20 '21 15:07 dpmchugh

Hi @dpmchugh

Looking at the traceback I am guessing that your code periodically re-instantiates the Spectrometer class. Could you provide the relevant code from you codebase that takes the measurement? My current guess is, that if you just instantiate the Spectrometer class once your problem will go away.

Cheers, Andreas :smiley:

ap-- avatar Jul 21 '21 20:07 ap--