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 gilsonpumpobjzeromanometricmodule(gilsonPumpObj)
% GILSONPUMPOBJZEROMANOMETRICMODULE zeroes the mano. mod. of Gilson 30x's
% gilsonpumpobjzeromanometricmodule(gilsonPumpObj) zeroes the manometric
% module attached to Gilson 30x pumps, where gilsonPumpObj is a valid
% serial object generated by gilsonPumpObj.  If a module is not connected,
% it errors.

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

% deviceID
deviceID = 1;

% zeroes the module
response = gilsonpumpobjcomm('read', gilsonPumpObj, deviceID, 'q');

% if response was n, there was no manometric module installed, so it didn't
% get zeroed
if strcmp(response, 'n')
    % errors
    error('Manometric module not zeroed since one is not connected.')

Contact us