How can I programmatically change the names of input variables in a Simulink Test Assessment Block?
이전 댓글 표시
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.
답변 (1개)
Akshat Dalal
2025년 3월 17일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Outputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!