このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
setDestination
クラス: slreq.Link
パッケージ: slreq
構文
setDestination(myLink,dest)
入力引数
例
Simulink ブロックをリンク先として設定
% Set the Gain block in model myModel as the destination for link myLink setDestination(myLink, 'myModel/Gain');
Simulink Test オブジェクトをリンク先として設定
% Create a Simulink Test test file, test suite, and a test case myTestfile = sltest.testmanager.TestFile('my_test_file.mldatx'); myTestsuite = sltest.testmanager.TestSuite(myTestfile,'My Test Suite'); myTestcase = sltest.testmanager.TestCase(myTestsuite,'equivalence','Equivalence Test Case'); % Create a link from the test case to requirement myReq myLink = slreq.createLink(req, myTestcase); % Set the link destination to the test suite setDestination(myLink, myTestsuite);
Stateflow オブジェクトをリンク先として設定
% Get Stateflow Root Handle rt = sfroot; % Find the state with the name 'Intermediate' myState = rt.find('-isa', 'Stateflow.State', 'Name', 'Intermediate'); % Set the destination for link myLink to myState setDestination(myLink, myState);
Simulink データ ディクショナリ エントリをリンク先として設定
% Get handle to Simulink data dictionary entry myDict = Simulink.data.dictionary.open('myDictionary.sldd'); dataSectObj = getSection(myDict,'Design Data'); myDictEntry = getEntry(dataSectObj,'myEntry'); % Set the destination for link myLink to myDictEntry setDestination(myLink, myDictEntry);
バージョン履歴
R2019b で導入