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.

tharbprobjreadcontrolstatus(tharBPRObj)
function controlStatus = tharbprobjreadcontrolstatus(tharBPRObj)
% BPROBJREADCONTROLSTATUS reads the control status of Thar BPRs
% controlStatus = tharbprobjreadcontrolstatus(tharBPRObj) reads the current
% control status of Thar BPRs. tharBPRObj is the BPR serial object
% (generated by tharbproj). The control status is either 1 (on) or 0 (off).

% e.g. tharbprobjreadcontrolstatus(tharbprobj(5)) - returns the current
% control status of the Thar BPR on COM5 e.g. 'off'

% Range:

% tharBPRObj = valid serial port object


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

% the current profile is on the 2nd line of the screen (if on the first F3
% screen)
controlStatus = onoff(strtrim(response{2}(18:20)));

Contact us