필터 지우기
필터 지우기

How to perform SIL testing using S function builder block and Simulink Test Manager ?

조회 수: 13 (최근 30일)
I want to know the full procedure of performing SIL test using S function builder block and with simulink test manager.
  댓글 수: 2
Guillaume
Guillaume 2023년 9월 14일
Hello,
I am not sure to fully understand your question. As soon as you wrapped your code under test in an S-Function you can use Simulink as usual. So you should first wrap your code into an S-Function with the S-Function builder (or maybe use a C caller block ?), then add a Test Harness on this model and finally configure Test Manager to execute it. If you need the full step-by-step method I am affraid it would be a quite long tutorial. Maybe you can be more specific on what you tried and what is not working ? Or ask more specific question (like how to wrap C code in S-Function builder).
MAHENDRAN A
MAHENDRAN A 2023년 9월 14일
Thanks for answering. I'm already praticing SIL test harness using s function by right clicking block then creating harnes and simulating for SIL test. But I'm missing out few points. As you've mentioned, I need to understand the full step-by-step and even if its a long process, im eager to learn it, as it will be useful for my project. If you've any process flow documents, links, videos, i request you to share.

댓글을 달려면 로그인하십시오.

답변 (1개)

Karanjot
Karanjot 2023년 9월 22일
Hi Mahendran,
I understand that you want to perform SIL testing using S function builder and want resources on the same.
To integrate your code into a Simulink model, you can use the S-Function builder or the C caller block. The S-Function builder allows you to wrap your code as an S-Function, which can then be added to your model.
Once you have added the S-Function or C caller block to your model, you can create a Test Harness for the model. A Test Harness provides a framework for testing and validating your model's functionality. It allows you to define test cases, specify inputs, and verify outputs.
To execute the Test Harness and automate the testing process, you can configure Test Manager. Test Manager is a tool in MATLAB that helps you manage and execute tests. It provides a user-friendly interface to define and organize test cases, execute them, and analyze the results.
By following these steps, you can efficiently integrate your code into a Simulink model, create a Test Harness, and use Test Manager to automate the testing process.
To learn more about this, please refer to the below documentation:
I hope this helps!

카테고리

Help CenterFile Exchange에서 Inputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by