Export Simulink Test results of test case to .mat file programatically

3 vues (au cours des 30 derniers jours)
Donovan McGraw
Donovan McGraw le 29 Oct 2021
Upon running a test case within Simulink Test Manager, I can export Verify Statements manually to a .mat file. However, I am struggling to find a way to do that programatically. The function 'getVerifyRuns()' does not tell me the results of any verfication statement of my test, such as what the verfication statement is and whether that one verification statement has passed or failed.
For example, I can right click on 'Verify Statements in the above image, right click -> Export data to MAT-File, and then view the data in that .mat file. Below is what is included in the exported .mat file.
I can then manually open the Value field of any one of these signals to analyze the time, value pairs. Using these values, I can see when the verification was evaluated and see the result, where -1 is untested, 0 is passed, 1 is failed
Is there a way to programatically export these values to a .mat file in the way described without having to open sltest.testmanager and having to right-clikc and export each testcase?

Réponses (0)

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by