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.

rheodyne232objreadperiod(serialObject)
function time = rheodyne232objreadperiod(serialObject)
% RHEODYNE232OBJREADPERIOD gets the Rheodyne timer period
% time = rheodyne232objreadperiod(serialObject) returns the Rheodyne valve
% timer period in seconds.

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

% looks in the serial object for the timer
if ~isfield(serialObject.UserData, 'timerObject')
    % error
    error('Could not find the timer object in the serial object user data.')
end

% gets it (note the use of the get notation because timers are stupid)
time = get(serialObject.UserData.timerObject, 'Period');

Contact us