creating baselines in simulink test

10 Ansichten (letzte 30 Tage)
Kevin Dammeyer
Kevin Dammeyer am 7 Mai 2019
Kommentiert: Jesús Zambrano am 1 Apr. 2020
When i hit the capture button in the baseline section of the simulink test manager, the process works until it tries to load the .mat file. then it says 'The specified file does not contain any valid simulation data' If i try to save simulation data from the simulink data inspector as a .mat file it would give me the same error. and when i try to import the same file into the simulink data inspector nothing shows up.
All of these signals are logged signals.
Also, if i save the data as a workspace variable it loads back into the simulink data inspector(SDI) just fine.
this leads me to believe that something is not working when i save it as a .mat.
i am using 2017b and this problem started when upgrading to windows 10. initially thought that it was due to microsoft access being the defualt program for .mat files, but i fixed that and the problem persists.

Akzeptierte Antwort

Kevin Dammeyer
Kevin Dammeyer am 1 Apr. 2020
Thanks for responding. I actually forgot about this.
However i did find a solution. the problem was that some of the reference models inside our system were not being executed and some of those signals were included in the baseline (other tests execute those reference models). since there was no data for those signals it caused the issue of corrupting the entire .mat file.
Once i excluded the signals that were in those non-executed reference models the baselines saved and had good data.

Weitere Antworten (1)

Jesús Zambrano
Jesús Zambrano am 1 Apr. 2020
Bearbeitet: Jesús Zambrano am 1 Apr. 2020
Use 'Capture' button if you want to record a baseline from the system under test. It will run the system under test and populate a table with the results of all those logged signals in the system. See an example here:
If you want to use some .mat (or Excel) file with data as baseline, use the 'Add' button.

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by