Avantes8 to Matlab

Read spectral data from Avantes8 spectrometer files
134 Downloads
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 (2024). 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!
Version Published Release Notes
1.2.0

Update function.

1.1.4

Update the function.

1.1.3

update the function

1.1.2

Update

1.1.1

Update

1.0.1

code

1.0.0