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.

readco2guiconfig
function [guiConfig, objectTypes, objectConfig, tc08Types, tc08Config] = readco2guiconfig
% readco2guiconfig reads the CO2gui configuration
% [guiConfig, objectTypes, objectConfig, tc08Types, tc08Config] =
% readco2guiconfig reads the CO2gui configuration

% filename for the GUI configuration
filename = [fileparts(mfilename('fullpath')), '\co2guiconfig'];

% if it exists, load the data, otherwise write a new file with the defaults
if exist([filename, '.mat'], 'file')
    % gets back the data
    load(filename, 'guiConfig', 'objectTypes', 'objectConfig', 'tc08Types', 'tc08Config')
    
else
    % displays a warning
    warning('readco2guiconfig:noData', 'Could not find the existing data, so writing defaults...')
    
    % writes the defaults, returning the data
    [guiConfig, objectTypes, objectConfig, tc08Types, tc08Config] = writeco2guiconfig;
end

Contact us