Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation



06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

function [mainGuiHandle, handles] = getguihandles
% GETGUIHANDLES fetches the handles structure from the picoLog timer

% finds the timer
picoTimer = timerfindall('Tag', 'pico');

% if its empty, error
if isempty(picoTimer)
    % return an empty handle
    mainGuiHandle = [];
    handles = [];

elseif numel(picoTimer) > 1
    % errors
    error('More than one pico timer available - CO2gui did not clean up properly afterwards.')

    % gets the timer function
    picoTimerFcn = picoTimer.TimerFcn;

    % gets the gui handle out
    mainGuiHandle = picoTimerFcn{2};

    % if there is more than one argument, also return the handles
    if nargout >= 2
        % retrieves the handles structure
        handles = guidata(mainGuiHandle);

Contact us