How can I programmatically change the names of input variables in a Simulink Test Assessment Block?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Akshat Dalal
le 17 Mar 2025
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 commentaires
Voir également
Catégories
En savoir plus sur Inputs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!