필터 지우기
필터 지우기

Simulink Test customCriteria - structRefFromNonStruct error

조회 수: 12 (최근 30일)
Varunjith Vijayan
Varunjith Vijayan 2017년 12월 13일
댓글: Khoo Yit Phang 2017년 12월 13일
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
Khoo Yit Phang
Khoo Yit Phang 2017년 12월 13일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Outputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by