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.

rheodyne232objreadall(serialObject)
function data = rheodyne232objreadall(serialObject)
% RHEODYNE232OBJREADALL returns the current data of Rheodyne valves
% data = rheodyne232objreadall(serialObject) returns a 1x6 cell array, with
% the "flow rate" (actually the timer period) in the 5th element, and the
% status of whether it is running or not in the 6th element.


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

% pre-allocates the answer
data = cell(1, 6);

% try-catches everything to get as much data out as possible
try
    % requests timer period
    data{5} = rheodyne232objreadperiod(serialObject);
    
catch
end

try
    % gets the timer status
    data{6} = rheodyne232objstatus(serialObject);
    
catch
end

Contact us