How to edit Test Sequence/Assessment block parameters via code

조회 수: 8 (최근 30일)
Michael Giordano
Michael Giordano 2016년 8월 17일
답변: Akshat Dalal 2025년 3월 17일
I'm currently writing a script to automate creation of Test Sequences and Test Assessments based on external data I have. I can edit my blocks in my script to add all the required inports/outports I need on my Test Assessment/Sequence blocks, as well as populate them with my test vectors and expected results.
My issue is that when I try and run my auto-generated model, I get errors on the symbolic inports/outports from my Test Sequence/Assessment blocks that are due to the size and type parameters being set to the defaults. Everytime I generate my model, I have to manually change these by hand. I've gone through the get_params for this block, and none of the options gives me access the parameters I need to change, as I could with other blocks (like normal inports/outports). I'd also like to enable the 'Log Signal data' option as well if possible.
Any options?

답변 (1개)

Akshat Dalal
Akshat Dalal 2025년 3월 17일
Hi Michael,
You can use sltest.testsequence.editStep function. You can use the 'Name-Value' pair to edit and specify the content. Please refer to the following documentation for more information: https://www.mathworks.com/help/sltest/ref/sltest.testsequence.editstep.html

카테고리

Help CenterFile Exchange에서 Inputs에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by