Simulink Test Sequence - How to Access Logged Signal Data

31 ビュー (過去 30 日間)
Richard Hopple
Richard Hopple 2018 年 5 月 7 日
回答済み: Richard Hopple 2018 年 5 月 10 日
I am writing a test using the "Test Sequence" block inside a test harness. The model being tested has a decent amount of logic that generates one signal that is used internally in that model. Due to the nature of the model, it does not need to be an actual output. It has both the "Log Signal Data" and "Test Point" checked on it. I am unsure of how to access that signal inside the "Test Sequence" block.
  2 件のコメント
Rong Mi
Rong Mi 2018 年 5 月 9 日
Hi, are you asking to use Test Sequence block to access some internal signals, such as inside of a subsystem block or a model reference block?
Test Sequence block requires a line to get connect to the signal, which means you cannot access to the signal wireless directly. Or you can use DSMW to write the signal to a DSM block and use DSMR inside of Test Sequence block to read the signal value.
Richard Hopple
Richard Hopple 2018 年 5 月 9 日
Yeah, that was what I was asking.

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

採用された回答

Richard Hopple
Richard Hopple 2018 年 5 月 10 日
Looks like the answer is that the signal either needs to be an output of the model being tested or written to a DSM block and accessed that way.
https://www.mathworks.com/matlabcentral/answers/399603-simulink-test-sequence-how-to-access-logged-signal-data#comment_566226

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by