Jasco Pumps RS232 communicatios
20 May 2013
(Updated 01 Jul 2013)
Commands to read and control Jasco pumps via RS232.
function flowMode = pumpobjreadflowmode(serialObject)
% PUMPOBJREADFLOWMODE returns the flow mode of Jasco pumps
% flowMode = pumpobjreadflowmode(serialObject) returns the flow mode of
% Jasco pumps connected to a valid serial port object, as numbers
% (precision: double). constant flow is 0, and constant pressure is 1.
% checks the number of arguments
error(nargchk(1, 1, nargin))
% fetches the flow mode
flowMode = str2double(pumpobjcomm('read', serialObject, 'cfcp load p'));