Code covered by the BSD License  

Highlights from
WA1500 - RS-232 Driver for Burleigh WA-1500 Wavemeter

WA1500 - RS-232 Driver for Burleigh WA-1500 Wavemeter

by

 

20 Sep 2012 (Updated )

Matlab driver to communicate with Burleigh WA-1500 wavemeter via RS-232. Send digital commands

getSetPoint(wa1500)
%GETSETPOINT Returns the current set point
%
% getSetPoint(wa1500) returns the current set point as a double.
% 
% In order for this function to work, the wavemeter must not be displaying
% the setpoint (i.e. the setpoint LED should not be on).
%
% Example:
%
%   Initialize
%   >> wa1500 = initWaveDAQ()
%   
%   Read the set point:
%   >> setPoint = getSetPoint(wa1500)
%
% See Also: wa1500, initWaveDAQ, commandWave
%

% 
%
% Todd Karin
% 08/30/2012

function setPoint = getSetPoint(wa1500)


% Press set point button.
t=.1;
pause(t)
fprintf(wa1500,'@&');
pause(t)
reading = getReading(wa1500);

pause(t)
% press set point button again
fprintf(wa1500,'@&');

pause(t)
% process

setPoint = str2double(reading{1});

Contact us