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 gilsonpumpobjstart(gilsonPumpObj)
% GILSONPUMPOBJSTART starts Gilson 30x pumps
% gilsonobjstart(gilsonPumpObj) starts the pump.  Note that this command
% always forces the pump into flow mode.

% This code is almost identical to that of gilsonpumpobjstop - room for
% removal of code duplication if necessary

% e.g. gilsonpumpobjstart(gilsonPumpObj(6)) starts the pump attached to
% COM6

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

% sets deviceID for future use
deviceID = 1;

% navigates back to the main menu

% then goes to the flow screen
gilsonpumpobjcomm('write', gilsonPumpObj, deviceID, 'Kda');

% selects the second line to read out next
gilsonpumpobjcomm('write', gilsonPumpObj, deviceID, 'W1');

% reads out the second line
bottomLine = gilsonpumpobjcomm('read', gilsonPumpObj, deviceID, 'W');

% if it is stopped, start the pump, otherwise do nothing else
if strcmp(bottomLine(24:26), 'Run')
    % presses the start button
    gilsonpumpobjcomm('write', gilsonPumpObj, deviceID, 'Ke');

% returns control back to the keypad
gilsonpumpobjcomm('write', gilsonPumpObj, deviceID, 'K');

Contact us