필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

enumeration class in simulink displayes signals wrongly ?

조회 수: 3 (최근 30일)
timo
timo 2016년 8월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
I have 2 enumeration classes
classdef clientRequest < Simulink.IntEnumType
enumeration
None(0)
Connect(1)
Send(2)
end
end
and
classdef serverResponse < Simulink.IntEnumType
enumeration
None(0)
Connect(1)
Send(2)
Listen(3)
end
end
At command prompt
int16(serverResponse.Listen)==int16(clientRequest.Send)
returns 0
But when i log the signals of this type in Simulation Data inspector there is a vertical tick called Listen and with a Data cursor it shows both Send and Listen as values for this tick after a time How is this possible ? Is this a bug ?
  댓글 수: 1
Swarooph
Swarooph 2016년 8월 29일
Could you post some screenshots of the data inspector?

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by