Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation

by

 

06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

bprobjstop(BPRObj)
function bprobjstop(BPRObj)
% BPROBJSTOP fully closes the Jasco BPR valve
% bprobjstop(BPRObj) fully close the Jasco BPR valve

% e.g. bprobjstop(BPRObj(5)) closes the BPR valve fully


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

% sends command to make sure its not in manual mode
bprobjcomm(BPRObj, '#23 0')

% gets the current valve status
valveStatus = bprobjreadvalvestatus(BPRObj);

% if its currently open (0) and you try to close it, it will error
if ~valveStatus
    % put it into auto first...
    bprobjcomm(BPRObj, '#0x24 2')
end

% now it can be closed
bprobjcomm(BPRObj, '#0x24 1')

Contact us