フィルターのクリア

How to pass Function Call to s function builder block?

2 ビュー (過去 30 日間)
Ankita Pingale
Ankita Pingale 2022 年 10 月 6 日
コメント済み: MAHENDRAN A 2023 年 9 月 20 日
I am performing SIL testing using S function builder block and Simulink Test Manager. I am passing function call from Test Sequence block. How to add function call in s function builder block?
  2 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 10 月 10 日
An S-Function cannot receive a function pointer as an input if this is what you are asking. But if I am not understanding your question please provide an example of what you are trying to do.
Ankita Pingale
Ankita Pingale 2022 年 10 月 14 日
Yes. S-function do not have capability to take function call. Is there any other workaround we can do to pass function call to S-function builder.

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

採用された回答

Mark McBroom
Mark McBroom 2022 年 10 月 15 日
編集済み: Mark McBroom 2022 年 10 月 15 日
You could place the S-Function Builder Block inside a function call subsystem, and then call the function-call subsystem from the Test Sequence Block.
  1 件のコメント
Ankita Pingale
Ankita Pingale 2022 年 10 月 18 日
As you said above is there any reference model available on mathworks site? If yes, could you please provide me the link for the same. Thank You @Mark McBroom.

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

その他の回答 (1 件)

MAHENDRAN A
MAHENDRAN A 2023 年 9 月 12 日
Hey hi ankita. I'm Mahendran. I'm also working on MIL, SIL tests using different methods. As of now i'm doing SIL test harness using s function logic. I'm facing few issues. Can you explain me how to perform SIL testing using S function builder block and Simulink Test Manager of what you doing.
It'll be helpful to me.
  2 件のコメント
Ankita Pingale
Ankita Pingale 2023 年 9 月 15 日
We use Simulink Test Manager and S function builder block for SIL testing.
Inside the s function builder block we define below items:
1) Under data properties define input/ output
2) Under libraries give path of your model source code and header code file
3) In output define the function which grouped all inputs and outputs
4) Build the s function
5) After successful s function build, pass the test case to s function block using test sequence and test assesment block of Simulink Test manager
6) Using Test Manager execute the test case and you can see SIL results in terms of coverage.
Hope this helps@MAHENDRAN A!!
MAHENDRAN A
MAHENDRAN A 2023 年 9 月 20 日
Thanks bro

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

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by