function [b, errstr, errir] = isccslinkinstalled
%ISCCSLINKINSTALLED   Returns true if the CCSLINK is installed.

%   Author(s): J. Schickler
%   Copyright 1988-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $  $Date: 2004/10/18 21:11:24 $

b = license('test', 'MATLAB_Link_for_CCS') && ~isempty(ver('ccslink'));

if b
    errstr = '';
    errid  = '';
else
    errstr = sprintf('%s\n%s', 'Link for Code Composer Studio® Development Tools is not available.', ...
        'Make sure that it is installed and that a license is available.');
    errid  = 'noHDLCoder';
end

% [EOF]
