フィルターのクリア

Setting Time Tolerances & Simulink.sdi.report

5 ビュー (過去 30 日間)
Richard Hopple
Richard Hopple 2017 年 9 月 20 日
コメント済み: Mike Crawford 2019 年 4 月 12 日
I'm trying to figure out how to set the new time tolerance via an API. I looked under the signalObj but that seems to have the relative and absolute tolerances but nothing related to time.
  1 件のコメント
Richard Hopple
Richard Hopple 2017 年 9 月 20 日
I realized I neglected to add this is under the simulation data inspector when you compare two runs.

サインインしてコメントする。

回答 (1 件)

David Ding
David Ding 2017 年 9 月 28 日
Hi Richard,
I understand that there is current no corresponding property in the Simulink SDI API that accesses the time tolerance of a signal for comparison. Such property is accessible in the SDI UI but not programmatically.
We are considering adding a "Time Tolerance" property into our SDI API for R2018a. In the meantime, there is a workaround using Simulink Test to compare a signal with a specified baseline involving time tolerances. In the following documentation:
Please scroll down to the example:
"Add Baseline Criteria and Change Tolerance"
On the last line of the example code,
sc(1).AbsTol = 9;
Please change "AbsTol" to either "LaggingTol" or "LeadingTol" depending whether the time tolerance is leading or lagging.
All the best,
David
  2 件のコメント
William R
William R 2018 年 8 月 24 日
You write that 'We are considering adding a "Time Tolerance" property into our SDI API for R2018a". What is the outcome of this consideration? Is it already added to 2018a or 2018b? I need this signal time tolerance and I think it is really a missing feature.
Mike Crawford
Mike Crawford 2019 年 4 月 12 日
In case you haven't seen yet, time tolerance was added in 2018A.

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by