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.

tharbprobjcurrenttemp.m
function currentTemp = tharbprobjcurrenttemp(tharBPRObj)
% THARBPROBJCURRENTTEMP reads the current temperature of Thar BPRs
% currentTemp = tharbprobjcurrenttemp(tharBPRObj) reads the current
% 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. tharbprobjcurrenttemp(tharbprobj(5)) - returns the current
% temperature of the BPR on COM5 e.g. 49.6 (C)

% Range:

% tharBPRObj = valid serial port object


% error handling
if ~nargin
    % errors
    error('Insufficient arguments')
end

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

% the set pressure is the first number on the 3rd line of the screen (if on
% the first F3 screen)
currentTemp = str2double(response{3}(17:19));

Contact us