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.

tempobjstatus(tempObj)
function status = tempobjstatus(tempObj)
% TEMPOBJSTATUS Reads the status of the Eurotherm temperature controllers
% status = tempobjstatus(tempObj) Reads status from Eurotherm temperature
% controllers given an appropriate serial port object (generated from
% tempobj).  Status is 1 if the controller is running automatically
% (temperature is being regulated), or 0 if in manual mode.

% e.g. status = tempobjstatus(tempobj(7)) - gives current status from the
% device on COM7

% Range:

% tempObj = valid serial port object


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

% retrieves information - it is 0 if it is in auto mode, so there is a '~'
status = ~tempobjcomm('read', tempObj, 1, 273, 1);

Contact us