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.

tempobjwritesetpointratelimit.m
function tempobjwritesetpointratelimit(tempObj, rateLimit)
% TEMPOBJWRITESETPOINTRATELIMIT changes the SP rate limit of Eurotherms
% tempobjwritesetpointratelimit(tempObj, rateLimit) changes the set point
% rate limit of Eurotherm temperature controllers given a valid serial port
% object and a rate limit from 0 to 999.9 C/min.  The set point rate limit
% is sent as a single precision number.

% e.g. tempobjwritesetpointratelimit(tempobj(7), 0) - turns the rate
% limiter off.

% Range:

% tempObj = valid serial object (generated by tempobj)

% rateLimit = number: 0 - 999.9


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

% error handling (the numbers are tested more thoroughly in tempobjcomm)
if rateLimit < 0 || rateLimit > 999.9
    % errors
    error('Set point rate limit must be between 0 and 999.9 Cmin^-1.')
end

% sends command
tempobjcomm('writefullres', tempObj, 1, 35, rateLimit);

Contact us