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 currentExtTemp = tharbprobjcurrentexttemp(tharBPRObj)
% THARBPROBJCURRENTEXTTEMP reads the current external temp of Thar BPRs
% currentExtTemp = tharbprobjcurrentexttemp(tharBPRObj) reads the current
% external temperature of Thar BPRs. tharBPRObj is the BPR serial object
% (generated by tharbprobj). The temperature is returned as a double
% precision scalar number in C.

% e.g. currentExtTemp = tharbprobjcurrentexttemp(tharbprobj(5)) - returns
% the current external temperature of the BPR on COM5 e.g. 50 C.

% Range:

% tharBPRObj = valid serial port object

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

% navigates to second display menu and fetches contents of screen
response = tharbprobjdisplaymenu2(tharBPRObj);

% the set pressure is the first number on the 3rd line of the screen (if on
% the second F3 screen)
currentExtTemp = str2double(response{3}(18:20));

% presses F3 again to go back to the first display menu
tharbprobjcomm('write', tharBPRObj, 19)

Contact us