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 response = gilsonpumpobjreadmanometricmodule(gilsonPumpObj)
% GILSONPUMPOBJREADMANOMETRICMODULE reads the manometric module of Gilsons
% response = gilsonpumpobjreadmanometricmodule(gilsonPumpObj) returns the
% manometric module of Gilson 30x pumps, where gilsonPumpObj is a valid
% serial object generated by gilsonPumpObj.  Response is 'None', or 'M805',
% 'M806' or 'M807' if a module is connected.

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

% deviceID
deviceID = 1;

% sends command
response = gilsonpumpobjcomm('read', gilsonPumpObj, deviceID, 'L');

% sets it to the user data
gilsonPumpObj.UserData = catstructs(gilsonPumpObj.UserData, struct('manometricModule', response));

Contact us