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.

tempobjwritemintemp.m
function tempobjwritemintemp(tempObj, minTemp)
% TEMPOBJWRITEMINTEMP changes the minimum temp. of Eurotherm controllers
% tempobjwritemintemp(tempObj, maxTemp) changes the minimum temperature of
% Eurotherm temperature controllers given a valid serial port object and a
% temperature from -199.9 to 500.  The temperature is sent as single
% precision.

% e.g. tempobjwritemintemp(tempobj(7), 0) - changes the minimum
% temperature to 0 C on the device on COM7.

% Range:

% tempObj = valid serial object (generated by tempobj)

% minTemp = number: -199.9 - 500


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

% error handling (the numbers are tested more thoroughly in tempobjcomm)
if minTemp < -199.9 || minTemp > 500
    % errors
    error('Minimum temperature must be between -199.9 and 500 C.')
end

% sends command
tempobjcomm('writefullres', tempObj, 1, 112, minTemp);

Contact us