python-seabreeze does not support Python 3.7 and above
$ conda env create -f environment.yml python=3.6
$ conda activate py36
$ conda install -c anaconda ipython # this is to make sure that iPython runs from this new environment
or if you already have a Python 3.6 environment you may install the dependencies using this command
$ conda env update --file environment.yml --prune
To update the yaml file to reflect latest packages
$ conda env export > environment.yml
$ 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
or
$ conda install -c conda-forge pyvisa
$ conda install future
$ conda install cffi
# for running measurements inside Instrumental
$ conda install -c conda-forge uncertainties
$ 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')
$ conda env export > environment.yml