필터 지우기
필터 지우기

Problem with setting a model parameter for Design Verifier

조회 수: 1 (최근 30일)
Sven-Eric Krüger
Sven-Eric Krüger 2017년 4월 27일
답변: Deepak 2017년 11월 9일
I generate a model programatically and want to set parameters regarding the Design Verifier.
new_system('harness')
...
set_param('harness', 'DVDetectOutOfBounds', 'on');
This produces the following error:
Error using PerformCheck (line 16)
block_diagram does not have a parameter named 'DVDetectOutOfBounds'
My question in detail is now: How do I programatically attach the options or parameters of the Design Verifier to a model?

채택된 답변

Deepak
Deepak 2017년 11월 9일
The parameters related to Simulink Design Verifier can be changed programmatically using sldvoptions.
For example:
opts =sldvoptions;
opts.Mode = DesignErrorDetection;
opts.DetectOutOfBounds = 'on'
The following documentation page provides you more information about programming sldv parameters:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Best Practices for Simulink Design Verifier Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by