OceanOptics Spectrometer
Pieces for interacting with OceanOptics spectrometers using the python-seabreeze library and the puzzlepiece framework.
Example usage (see Getting started for more details on using Pieces in general):
import puzzlepiece as pzp
from pzp_hardware.oceanoptics import spectrometer
app = pzp.QApp()
puzzle = pzp.Puzzle(debug=False)
puzzle.add_piece("spectrometer", spectrometer.Piece, row=0, column=0)
puzzle.show()
app.exec()
Installation
If available, install OceanView from https://www.oceanoptics.com/software/ - this will install the drivers needed to talk to the spectrometer. Alternatively, follow https://python-seabreeze.readthedocs.io/en/latest/install.html for details on how to install the drivers with
python-seabreeze.Install the
seabreezelibrary with pip, or wait to be prompted for automatic installation when first running the Piece.
Requirements
This Piece has additional requirements. You will be asked to install them at runtime, or you may choose to install them ahead of time.
seabreeze –
pip install seabreeze– Instructions