python-seabreeze does not support Python 3.7 and above
$ conda create -n py36 python=3.6
$ conda activate py36
$ git clone https://github.com/mabuchilab/Instrumental.git
$ git clone https://github.com/mabuchilab/NiceLib.git
$ git clone https://github.com/doddgray/experiment_control.git
$ pip install pyvisa
$ conda install future
$ python ./NiceLib/setup.py install
$ python ./Instrumental/setup.py install
Download installer from https://sourceforge.net/projects/seabreeze/files/SeaBreeze/installers/ and run If a zip file is downloaded, plug in the spectrometer and use the update driver and browse for driver files from the extracted files.
Download from
https://sourceforge.net/projects/seabreeze/
Following the instructions in
https://oceanoptics.com/api/seabreeze/index.html#install_linux
Run the following to compile Seabreeze drivers and set paths
$ make
$ export DYLD_FALLBACK_FRAMEWORK_PATH="$PWD/lib"
$ export DYLD_LIBRARY_PATH="$PWD/lib"
Un plug and replug usb and Run the following to test if Seabreeze drivers are installed $ test/seabreeze_test_posix
For Python 3.6 distributions and below $ conda install -c poehlmann python-seabreeze
For Python 3.8 and beyond $ conda install -c poehlmann seabreeze
conda install pyqtgraph
http://www.pyqtgraph.org/documentation/installation.html
$ python ./experiment_control/ocean_optics_HR4000_plot.py
Follow instructions at https://pyvisa.readthedocs.io/en/master/getting.html
Download and install NI-VISA http://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html#305862
Install NI-488.2 for GPIB support http://www.ni.com/en-us/support/downloads/drivers/download.ni-488-2.html#306165
for Mac OSX Allow National Instruments software access to system in System Preferences > Security & Privacy
Check to see if the driver is properly installed In [1]: import visa In [2]: rm = visa.ResourceManager() In [3]: rm.list_resources() Out[3]: ('ASRL1::INSTR', 'GPIB0::15::INSTR')