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.

tempobjreadmaxtemp.m
function maxTemp = tempobjreadmaxtemp(tempObj)
% TEMPOBJREADMAXTEMP Reads maximum temperature from Eurotherm controllers
% maxTemp = tempobjreadmaxtemp(tempObj) Reads maximum temperature in C
% from Eurotherm temperature controllers given an appropriate
% serial port object (generated from tempobj).

% e.g. maxTemp = tempobjreadmaxtemp(tempobj(7)) - gives current maximum
% temperature from the device on COM7

% Range:

% tempObj = valid serial port object


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

% retrieves information (tempobjcomm returns the temperature in C)
maxTemp = tempobjcomm('readfullres', tempObj, 1, 111, 1);

Contact us