spectrometer and system information
- model: (i.e. USB2000, STS, etc...) ADC1000USB
- operating system: (i.e. Windows 7 64bit) Linux, Fedora 37, Cinnamon
- python version: (output of
python --version) Python 3.11.2
- python-seabreeze version: (i.e. 0.5.3 or 'current master') 2.2.0
- installed-via: (conda, wheel, or python setup.py install) pip install
After setting interrupt mode 3, the call to self.dev.intensities() sometimes produces the following error. Other times it requires two pulses on the input before it will return one spectrum.
File "/home/nelson/Projects/TeensyDataAcquistion/Python_Programs/./SeaBreezeInstrument.py", line 431, in readspectrum_
self.ydata = self.dev.intensities()/self.dev.max_intensity
^^^^^^^^^^^^^^^^^^^^^^
File "/home/nelson/.local/lib/python3.11/site-packages/seabreeze/spectrometers.py", line 212, in intensities
out = self._dev.f.spectrometer.get_intensities()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nelson/.local/lib/python3.11/site-packages/seabreeze/pyseabreeze/features/spectrometer.py", line 621, in get_intensities
tmp = self._get_spectrum_raw()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nelson/.local/lib/python3.11/site-packages/seabreeze/pyseabreeze/features/spectrometer.py", line 171, in _get_spectrum_raw
self.protocol.receive(
File "/home/nelson/.local/lib/python3.11/site-packages/seabreeze/pyseabreeze/protocol.py", line 707, in receive
return self.transport.read(
^^^^^^^^^^^^^^^^^^^^
File "/home/nelson/.local/lib/python3.11/site-packages/seabreeze/pyseabreeze/transport.py", line 203, in read
ret: bytes = self._device.pyusb_device.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/usb/core.py", line 1029, in read
ret = fn(
^^^
File "/usr/lib/python3.11/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.__read(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/usb/backend/libusb1.py", line 954, in __read
_check(retval)
File "/usr/lib/python3.11/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 75] Overflow
S
current problem
detailed description of what doesn't work
steps to reproduce
Step by step instructions to reproduce the error. The more detailed the better, but please use some common sense:
- run code example
- ...
minimal code example and error (very helpful if available)
copy of minimal code example and error messages
spectrometer and system information
python --version) Python 3.11.2After setting interrupt mode 3, the call to self.dev.intensities() sometimes produces the following error. Other times it requires two pulses on the input before it will return one spectrum.
current problem
detailed description of what doesn't work
steps to reproduce
Step by step instructions to reproduce the error. The more detailed the better, but please use some common sense:
minimal code example and error (very helpful if available)