Azzera filtri
Azzera filtri

SIL with buit-in task RunTestsperTestCases in CI/CD

6 visualizzazioni (ultimi 30 giorni)
@mathwork staff,
I am trying to perform SIL with process advisor and built-in task RunTestperTestCases.m
In this file, it is mentioned that, this task can be used as MIL/SIL task. When i change the properties of the built-in task, SimulationMode from "" to "simulation-in-the-Loop (SIL)", still the testpertestcases.m file performs test cases in normal mode.
I am missing something here? Should i change something else aslo?

Risposta accettata

Vandit
Vandit il 2 Feb 2024
Hi Dhruvilkumar,
I understand that you are working with process advisor and attempting to use the built-in task "RunTestperTestCases.m" for Software-in-the-Loop (SIL) testing. However, despite changing the 'SimulationMode' property, the "RunTestperTestCases.m" file continues to execute the test cases in normal mode rather than in SIL mode as intended.
Upon reviewing the "RunTestperTestCases.m" file, it is observed that there is a conditional check implemented to determine whether the MATLAB release in use is R2023a or later. This check is essential for permitting the override of the simulation mode. The relevant section of code is as follows:
% Detect whether SimulationMode is set and we are in a
% release that supports it.
runWithSimOverride = false;
if obj.SimulationMode ~= ""
if padv.internal.is23aOrLater
runWithSimOverride = true;
else
warning(message('padv_spkg:tasks:SimulationModePropertyNotSupported', class(obj)))
end
end
If you are using MATLAB R2022b, the condition "padv.internal.is23aOrLater" will evaluate to "false", and the simulation mode override will not be applied.
To resolve this issue, you would need to upgrade to MATLAB R2023a or later, as the code seems to be designed with features or capabilities that are specific to that release or newer.
Hope this helps.
  1 Commento
Dhruvilkumar Chavada
Dhruvilkumar Chavada il 5 Feb 2024
I manage to change the code a little bit and then it started performing SIL test cases.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by