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

OceanHR6 connection issue

Open SJK-97 opened this issue 1 year ago • 1 comments

spectrometer and system information

  • model: Ocean HR6
  • operating system: Windows 10, 64bit
  • python version: Python 3.12.4 | packaged by Anaconda
  • python-seabreeze version: newest version
  • installed-via: conda

current problem

I am attempting to operate the Ocean Optics HR6 model using Seabreeze, but unfortunately, I keep encountering an issue where the device cannot be found. However, I confirmed that the device works properly when using the OceanView program provided by Ocean Optics. May I kindly ask if Seabreeze supports the HR6 model? If it is not currently supported, are there any plans to add support for this model? Furthermore, if I could be of assistance in adding support for the HR6 model, could you kindly guide me through the necessary steps?

steps to reproduce

The code I ran is as follows:

import seabreeze from seabreeze.spectrometers import list_devices print( list_devices()) <[]

Unfortunately, it returns an empty list. I have also attempted to follow the troubleshooting guide provided at https://python-seabreeze.readthedocs.io/en/latest/troubleshoot.html, but this did not resolve the issue.

I would greatly appreciate any further guidance or suggestions you could offer regarding this matter.

SJK-97 avatar Sep 27 '24 09:09 SJK-97

Hi @SJK-97

Can you check the usb product id of the HR6? If it differs from the SR6, you would have to follow what was done in this PR https://github.com/ap--/python-seabreeze/pull/230/

Let me know if you need more detailed instructions, Cheers, Andreas 😃

ap-- avatar Oct 04 '24 10:10 ap--

Supported in v2.10.0 via:

# pip install "seabreeze[pyseabreeze]>=2.10.0"

import seabreeze
seabreeze.use('pyseabreeze')

from seabreeze.spectrometers import Spectrometer
spec = Spectrometer.from_first_available()
print(spec.intensities())

ap-- avatar Oct 29 '24 15:10 ap--