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.

tharbprobjstop(tharBPRObj)
function tharbprobjstop(tharBPRObj)
% BPROBJSTOP stops automatic control of Thar BPRs
% tharbprobjstop(tharBPRObj) stops automatic valve control of Thar BPRs.
% tharBPRObj is the BPR serial object (generated by tharbproj).  It doesn't
% matter if this command is sent and the BPR is already stopped.

% e.g. tharbprobjstop(tharbprobj(5)) - stops automatic valve 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 'F2'
tharbprobjcomm('write', tharBPRObj, 18)

Contact us