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 currentPress = tharbprobjcurrentpress(tharBPRObj)
% BPROBJCURRENTPRESS reads the current pressure of Thar BPRs
% currentPress = tharbprobjreadcurrentpress(tharBPRObj) reads the current
% pressure of Thar BPRs. tharBPRObj is the BPR serial object (generated by
% tharbproj). The pressure is returned in bar.

% e.g. tharbprobjcurrentpress(tharbprobj(5)) - returns the current pressure
% of the thar BPR on COM5 e.g. 100 (bar)

% Range:

% tharBPRObj = valid serial port object

% checks the number of input arguments
error(nargchk(1, 1, nargin))
% navigates to display menu and fetches contents of screen
response = tharbprobjdisplaymenu(tharBPRObj);

% the current pressure is the second number on the 4th line of the screen
% (if on the first F3 screen)
currentPress = str2double(response{4}(17:19));

Contact us