Clear Filters
Clear Filters

SIL testing through Process advisor

5 views (last 30 days)
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..

Answers (1)

Hassaan
Hassaan on 18 Jan 2024
Edited: Hassaan on 18 Jan 2024
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 Comment
Dhruvilkumar Chavada
Dhruvilkumar Chavada on 21 Jan 2024
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.

Sign in to comment.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!