How to apply constraints on test signals being generated by Design Verifier?

조회 수: 7 (최근 30일)
I am trying to generate test cases for increased model coverage of a model, using design verifier. The problem is that some test cases generated by Design verifier have impractical negative values for signals that cannot be negative in reality. Is there a way to apply any constraints to test cases generated by Design Verifier?

채택된 답변

Deepak
Deepak 2017년 11월 9일
Hi Tushar,
The signals in the test cases can be constrained by using ‘Test Condition’ block from Simulink Design Verifier library. The following demo will be more helpful in understanding the functionality of this block.
sldvdemo_debounce_testconblk
The additional information of this block is available on the documentation page:
  댓글 수: 1
Ramin Noruzi
Ramin Noruzi 2019년 7월 1일
So I try to use SLDV to evaluate a chart. Inputs and outputs of this chart are Enumerations, Is there a way to put a data type constraints for SLDV? Because now it just makes double for inputs and outputs consequently its not able to decide.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by