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.

isrealtermhandle(input)
function response = isrealtermhandle(input)
% ISREALTERMHANDLE returns true or false if it is a real term handle or not

% checks the number of arguments
error(nargchk(1, 1, nargin))

% checks it
if isstruct(input)
    % not defined
    error('Not defined for structures.')
    
elseif iscell(input)
    % recursively call this
    response = cellfun(@isrealtermhandle, input, 'UniformOutput', false);
    
else
    % check it
    response = isa(input, 'COM.realterm_realtermintf'); %&& isscalar(input);
end

Contact us