フィルターのクリア

Problem with setting a model parameter for Design Verifier

2 ビュー (過去 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 Center および File ExchangeBest 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