WA1500 - RS-232 Driver for Burleigh WA-1500 Wavemeter
20 Sep 2012
21 Sep 2012)
Matlab driver to communicate with Burleigh WA-1500 wavemeter via RS-232. Send digital commands
% WA1500 Toolbox - RS-232 Driver for Burleigh WA-1500 Wavemeter
% Version 1.0 20-Sep-2012
% Matlab driver to communicate with Burleigh WA-1500 wavemeter via
% The wa1500 toolbox allows communication to a Burleigh WA-1500
% wavemeter via an RS-232 connection. Wavemeter communication can be
% initialized and read out digitally. The analog output can be read and
% converted to a wavelength in the software. The toolbox includes
% functionality to send serial commands to the wavemeter.
% The package documentation can be opened by typing
% >> doc wa1500
% into a matlab prompt. The latest version of this software can be
% downloaded <a href="http://www.mathworks.com/matlabcentral/fileexchange/38273-wa1500-rs-232-driver-for-burleigh-wa-1500-wavemeter">here</a>.
% The serial cable should be plugged into the 'COM1' port of the
% machine. This allows matlab to communicate with the instrument using
% the SERIAL and FPRINTF functions.
% Reading the wavelength using the analog output results in a faster
% read time. However, to do this directly into matlab requires the data
% acquisition toolbox and a DAQ board.
% WA1500 main functions.
% initWaveDAQ - Initialize communication to wavemeter
% readWavelength - Get wavelength reading
% GETREADING - Get a single reading from the wavemeter.
% closeWave - Shut down communication to wavemeter
% COMMANDWAVE - Send serial commands to wavemeter
% WAVEMETERV2NM - Convert analog out voltage to wavelength
% Supplemental functions
% DEVRESETQ - Does the deviation need to be reset?
% GETSETPOINT - Returns the current set point
% READONCE - Gets one wavelength reading from the wavemeter
% RESETDEVIATION - Set the setpoint equal to current wavelength
% INSTALL, LICENSE, README, Burleigh WA-1500 manual.
% This example shows how to initialize communication, get a wavelength
% reading, and then close down communication:
% Initialize the instrument
% >> wa1500 = initWaveDAQ;
% Get a wavelength reading
% >> wavelength = readWavelength(wa1500);
% Shut down communication
% >> closeWave(wa1500);
% Copyright (C) 2012 Todd Karin <toddakarin (at) gmail (dot) com>
% Contributions by Pasqual Rivera
% $Revision: 1.0 $Date: 2012/09/01 16:15:30 $
% Burleigh, WA-1500, WA1500, wavemeter, RS-232, serial, driver, reader, read