How can i test interface signals between subsystems?

6 ビュー (過去 30 日間)
Sai
Sai 2019 年 3 月 14 日
コメント済み: Fangjun Jiang 2019 年 3 月 27 日
I will explain with simple example:
There is a interface signal between Subsystem1 and Subsystem2. Both subsystems are Model reference subsystems.
Now, I want to test this interface signal in such a way that values of this signal at the both the the subsystems are same.
I can check values of singnal by putting scopes/sinks but i want some kind of automation approach to test these signals.
Also i want to test if the complete range of signal is coveraed and if is there any range voilation of signals?
Any ideas to do this?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 3 月 14 日
If the signal goes directly from Subsystem1 to Subsystem2, then by definition their values are the same. Why would you still want to verify, even though the two subsystems are model reference.
To check the range, you can use the "check static range" block in Simulink->Model Verificaiton. Or, resolve the signal to a Simulink.Signal object, specify the Min and Max value, set the "Simulation range checking" to be warning or error in Configuration Parameters->Diagnostics->Data Validity->Signals
  6 件のコメント
Sai
Sai 2019 年 3 月 27 日
Thank you. I am able to save MIL simulation data by logging the signals but how to save SIL simulation data by logging?
Fangjun Jiang
Fangjun Jiang 2019 年 3 月 27 日

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

カテゴリ

Help Center および File ExchangeOutputs についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by