How can I programmatically change the names of input variables in a Simulink Test Assessment Block?
4 ビュー (過去 30 日間)
古いコメントを表示
I'm standardizing the names of signals in my Simulink environment and have made a script to change names of inports & outports of my models using get_param() & set_param().
For the Simulink test harnesses, it seems a lot more tricky.
For a Test Assessment block, the names of input signals used in test assessments are not accessable via
>>get_param(gcb,'InputSignalNames')
I've seen that there is a long list of "slstest" methods listed at https://www.mathworks.com/help/sltest/automation.html?s_tid=CRUX_lftnav
although I can't see how to edit the names of the assessment block's input variables and parameter variables programmatically.
0 件のコメント
回答 (1 件)
Akshat Dalal
2025 年 3 月 17 日
Hi Adam,
Not sure if this is possible in older releases but you could use 'sltest.testmanager.AssessmentSymbol' in newer releases(introduced in R2022a) which provides utility to maintain the input and output variables of a test assesment block. It should be helpful in modifying the test assesment signals(symbols). Please refer the following documentation for more information: https://www.mathworks.com/help/sltest/ref/sltest.testmanager.assessmentsymbol-class.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Inputs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!