Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

enumeration class in simulink displayes signals wrongly ?

3 Ansichten (letzte 30 Tage)
timo
timo am 28 Aug. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentar
Swarooph
Swarooph am 29 Aug. 2016
Could you post some screenshots of the data inspector?

Antworten (0)

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by