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 status = pumpobjstatus(pumpObj)
% PUMPOBJSTATUS returns the current flow rate of Jasco pumps
% status = pumpobjstatus(pumpObj) returns the status of Jasco pumps
% connected to a valid serial port object.  If the pump is running, the
% status is 1, and 0 if it is not pumping.

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

% if the current flow is greater than 0, the pump is running
if pumpobjreadflow(pumpObj)
    % pump is running
    status = true;
    % pump is not running (or is set to 0 mLmin-1)
    status = false;

Contact us