Code covered by the BSD License  

Highlights from
Thar ABPR-20 RS232 communication via handheld emulation

Thar ABPR-20 RS232 communication via handheld emulation

by

 

20 May 2013 (Updated )

Controls and reads from a Thar ABPR-20, by emulating the handheld controller.

tharbprobjstartextheater(tharBPRObj)
function tharbprobjstartextheater(tharBPRObj)
% BPROBJSTARTEXTHEATER starts external heater control of Thar BPRs
% tharbprobjstartextheater(tharBPRObj) starts external heater control of
% Thar BPRs. tharBPRObj is the BPR serial object (generated by tharbproj).
% It doesn't matter if this command is sent and the the external heater is
% already on.

% e.g. tharbprobjstartextheater(tharbprobj(5)) - starts external heater
% control of the Thar BPR on COM5.

% Range:

% tharBPRObj = valid serial port object


% error handling
if ~nargin
    % errors
    error('Insufficient arguments')
end

% navigates to main display menu
tharbprobjdisplaymenu(tharBPRObj);

% presses 'H'
tharbprobjcomm('write', tharBPRObj, 'H')

Contact us