SIL test fails due to data store update issue, unlike successful MIL

5 ビュー (過去 30 日間)
Abhijeet Kate
Abhijeet Kate 2025 年 3 月 19 日
編集済み: Abhijeet Kate 2025 年 3 月 20 日
Hi Community,
I am encountering an issue during Software-in-the-Loop (SIL) testing. My Simulink model utilizes three data stores: 'A', 'B', and 'Y'. Data stores 'A' and 'B' serve as inputs, while 'Y' represents the output, intended to store the sum of 'A' and 'B'. During Model-in-the-Loop (MIL) testing, all test cases pass successfully. However, when I transition to SIL testing, the 'Y' data store fails to update, causing the test cases to fail. I have verified the generated code, and it appears to correctly reflect the model's logic. Could anyone provide insight into potential causes for this discrepancy and offer troubleshooting suggestions? I have attached the model for reference.
The procedure I am following to create the SIL test harness is as follows:
Right click on Subsystem ==> Test Harness ==> Create for subsystem ==> Sources and Sinks => Test Sequence ==> Advacnced Properties ==> Verification Mode => Software in Loop.
  1 件のコメント
Abhijeet Kate
Abhijeet Kate 2025 年 3 月 20 日
編集済み: Abhijeet Kate 2025 年 3 月 20 日
While i am doing back to back testing i am getting "Subsystem SIL_TEMP/Subsystem contains 'Data Store Read' or 'Data Store Write' blocks, which is not supported for SIL and PIL subsystem simulations." this kind of error. i also attach the screenshot of error message for the reference..

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeTest Model Components についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by