You can use Instrument Control Toolbox™ to communicate with Ocean Optics USB spectrometers. You can acquire data from the spectrometer and control it. Ocean Optics manufactures a broad line of USB-powered spectrometers covering the visible, near IR, and UV portions of the spectrum. You can use these spectrometers from MATLAB® on Windows® and Macintosh platforms.
The Instrument Control Toolbox Support Package for Ocean Optics Spectrometers lets you use MATLAB for comprehensive control of any spectrometer that is supported by the Ocean Optics OmniDriver software (version 2.12 or higher). You can perform many tasks, including:
Acquire a spectrum
Set the integration time
Enable dark current and nonlinear spectral corrections
View all connected devices
For a list of supported devices, see http://www.mathworks.com/hardware-support/ocean-optics-spectrometers.html.
This feature is available through the Hardware Support Packages. Using this installation process, download and install the following file(s) on your host computer:
MATLAB Instrument Driver for Ocean Optics support
Ocean Optics OmniDriver version 2.2 driver files
An example that shows how to take measurements with an Ocean Optics spectrometer
You can use this support package on a host computer running on 64-bit Windows or 64-bit macOS operating systems that Instrument Control Toolbox supports.
Installing the Support Package
To install the Instrument Control Toolbox Support Package for Ocean Optics Spectrometers:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.
In the Add-On Explorer, scroll to the Hardware Support Packages section, and click show all to find your support package.
To uninstall support packages:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.
To update existing support packages:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Check for Updates > Hardware Support Packages.
For more information about using Add-On Explorer, see Get Add-Ons (MATLAB).