How to edit Test Sequence/Assessment block parameters via code
조회 수: 8 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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
댓글 수: 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!