Simulink Test customCriteria - structRefFromNonStruct error
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am logging the data to monitor the active step of Test sequence block to workspace. I tried to use this logged data in CustomCriteria function using the following code.
data = test.sltest_simout.get('logsout').get('state').Values.Data(end);
and it returns the following error.The type of data is 'Enum:Test_Sequence_Active_Step_Enum'. What might be the problem? I had attached the logsout workspace file.
-------------------------------------------------------------------- Error occurred in custom criteria and custom criteria assessment did not run to completion.
---------
Error ID:
---------
MATLAB:structRefFromNonStruct
--------------
Error Details:
--------------
Struct contents reference from a non-struct array object.
--------------------------------------------------------------------
1 Kommentar
Khoo Yit Phang
am 13 Dez. 2017
Hi,
Do you mind attaching your model and mldatx test file? It would give me a better idea about what's going on. Also, which version of Simulink are you running?
Thanks,
Yit
Antworten (0)
Siehe auch
Kategorien
Mehr zu Outputs finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!