Jasco Pumps RS232 communicatios
20 May 2013
(Updated 01 Jul 2013)
Commands to read and control Jasco pumps via RS232.
function status = pumpobjstatus(serialObject)
% PUMPOBJSTATUS returns the current flow rate of Jasco pumps
% status = pumpobjstatus(serialObject) 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
% pump is running
status = true;
% pump is not running (or is set to 0 mL min-1)
status = false;