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.

tempobjreadsettemp.m
function setTemp = tempobjreadsettemp(tempObj)
% TEMPOBJREADSETTEMP Reads set temperature from Eurotherm controllers
% setTemp = tempobjreadsettemp(tempObj) Reads set point in C from
% Eurotherm temperature controllers given an appropriate serial port object
% (generated from tempobj).

% e.g. setTemp = tempobjreadsettemp(tempobj(7)) - gives current set
% temperature from the device on COM7

% Range:

% tempObj = valid serial port object


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

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

Contact us