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.

getwindowhandles
function [handles, windowHandle] = getwindowhandles
% GETWINDOWHANDLES returns the handles, and the handle to the first window
% in the MATLAB GUI (assuming nothing else is stored in the root appdata).

% gets the root appdata
rootAppData = getappdata(0);

% gets the fieldnames
fields = fieldnames(rootAppData);

% returns the first field
windowHandle = rootAppData.(fields{1});

% gets the handles
handles = guidata(windowHandle);

Contact us