Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OceanHR6 connection issue #263

Closed
SJK-97 opened this issue Sep 27, 2024 · 2 comments
Closed

OceanHR6 connection issue #263

SJK-97 opened this issue Sep 27, 2024 · 2 comments

Comments

@SJK-97
Copy link

SJK-97 commented Sep 27, 2024

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.

@ap--
Copy link
Owner

ap-- commented Oct 4, 2024

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--
Copy link
Owner

ap-- commented Oct 29, 2024

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-- ap-- closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants