Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation

by

 

06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

fibreobjstatus(serialObject)
function status = fibreobjstatus(serialObject)
% FIBREOBJSTATUS returns the status of the FOR (re broadcasting)
% status = fibreobjstatus(serialObject) returns true if it is broadcasting,
% false if it isn't

% checks the number of arguments
error(nargchk(1, 1, nargin))

% gets the intensity
try
    % tries
    fibreobjreadintensity(serialObject);

    % if it got this far its broadcasting
    status = true;

catch
    % it errored, it didn't
    status = false;
end

Contact us