c2000demoscallback.m

来自「This example demonstrates the use of the」· M 代码 · 共 20 行

M
20
字号
function c2000demoscallback(varargin)
% This m-file is set as a callback for all the TIC6000 demos. When the demo
% model opens, this callback executes. For now, we check if Embedded
% Coder is installed, and if it does, we switch the model to use
% ti_c6000_ert.tlc target, else ti_c6000.tlc target.

% $Revision: 1.1.6.7.2.1 $ $Date: 2007/02/03 07:56:50 $
% Copyright 2003-2006 The MathWorks, Inc.

try
    grt_ert_switch_target(gcs, 'ccslink_grt.tlc', 'ccslink_ert.tlc', 'auto');
catch
    % model will use GRT instead
    % when we use backward compatibility tool the warning will show
    % unneccessarily since the switch above will always fail due to
    % target being c2000_ert or c2000_grt
    % warning('Cannot auto-set system target file.');
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?