Avantes8 to Matlab

version 1.2.0 (49.2 KB) by Yuanfei Jiang
Read spectral data from Avantes8 spectrometer files


Updated 7 Feb 2022

View License

% Reads a single binary file saved by Avantes AvaSoft8 software.
% include '.RAW8', '.RWD8', '.ABS8','.TRM8','.RFL8','.IRR8','.RIR8'.
function [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename,specified_mode)
% Reads a single binary file saved by Avantes AvaSoft8 software.
% Yuanfei Jiang, 2022.02.05
% jiangyuanfei@jlu.edu.cn
% Institute of Atomic and Molecular Physics, Jilin University, P.R.China.
% specify_mode: 0 - 6
% 0 'Scope Mode'
% 1 'Scope minus Dark Mode'
% 2 'Absorbance Mode'
% 3 'Transmittance Mode'
% 4 'Reflectance Mode'
% 5 'Absolute Irradiance Mode'
% 6 'Relative Irradiance Mode'
% for example:
% [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename)
% If the mode parameter is not specified, it will read the mode from data file.
% Returns the result calculated from the read mode.
% [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename,specify_mode)
% If the mode parameter is specified, it will ignore the mode read from
% data file and use the specified mode parameter and returns the
% calculation result of the specified mode.
% The number of pixels settings by factory can be read from data file.
% If less number of pixels be used, the actual number of pixels will be
% calculated.

Cite As

Yuanfei Jiang (2022). Avantes8 to Matlab (https://www.mathworks.com/matlabcentral/fileexchange/98339-avantes8-to-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!