SIL testing through Process advisor

5 次查看(过去 30 天)
I am currently developing a project based on the process advisor example.
I am trying to perform software in loop testing with process advisor.
Is it possible to perform SIL with the same test cases developed for the simulation?
Is it possible to perform with any built in task?
If not so, is the any example for reference..

回答(1 个)

Hassaan
Hassaan 2024-1-18
编辑:Hassaan 2024-1-18
Using the Same Test Cases for SIL as in Simulation:
  • It is often feasible to use the same test cases for both SIL and simulation. The key is to design these test cases to focus on the inputs and outputs of the system, making them adaptable to either simulation or SIL environments.
Built-in Tasks for SIL in Process Advisor:
  • MATLAB and Simulink offer tools for SIL testing, Process Advisor might not have specific built-in tasks for this purpose. Custom tasks or scripts may be needed to integrate SIL testing into your workflow, depending on your MATLAB version and installed toolboxes.
Examples for Reference:
  • MATLAB and Simulink documentation, along with the MathWorks website, are valuable resources for SIL testing examples. Toolboxes like Simulink Test or Embedded Coder also provide demo models and examples specifically for SIL.
Integrating SIL Testing into Your Project:
  • Effective integration of SIL testing involves understanding MATLAB/Simulink’s code generation workflow, using test harnesses in Simulink Test for isolated component testing, automating test execution and reporting, and leveraging specialized toolboxes for extended functionalities.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Feel free to contact me.
  1 个评论
Dhruvilkumar Chavada
Yes, I want to use attached built in task. It says it can be used to perform MIL and SIL, and there is property name SimulationMode, which i tried to change to 'Software-in-the-loop' but the test cases still runs in MIL mode, when i check the result in test manager.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 SIL, PIL, and HIL Tests 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by