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.

tharbprobjstart(tharBPRObj)
function tharbprobjstart(tharBPRObj)
% BPROBJSTART starts automatic control of Thar BPRs
% tharbprobjstart(tharBPRObj) starts 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 started.

% e.g. tharbprobjstart(tharbprobj(5)) - starts 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 'F1'
tharbprobjcomm('write', tharBPRObj, 17)

Contact us