Ticket #91 (closed enhancement: wontfix)
SignalType for Integer (Enumerations) / Boolean
| Reported by: | henrik.isernhagen@… | Owned by: | otter |
|---|---|---|---|
| Priority: | normal | Milestone: | undecided |
| Component: | *unspecified* | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Hide ticket: | no |
Description
For Real Signals it is possible to define a SignalType with an quantity and an display unit. In order to this, it is possible to describe the type of a signal.
Additionally, often Boolean Signals and also Integer Signals are used to describe a state and according to this a type of signal. An example is here the actual workaround for the Enumeration implementation as an Integer. Here, a quantity is normally added, too, e.g. "gear" and the according Integer represantation "-1, 0, 1, 2, ...".
If you use an Integer Signal as a representation of a state (e.g. http://www.modelica.org/events/modelica2008/Proceedings/sessions/session3c3.pdf) it should be possible to add the defined SignalType (the Enumeration with displayUnit) to the signal. In order to this it would be possible to plot a signal with label, e.g, "gear, transmission state, shifting type".
The same applies for a Boolean signal, because it is often used as a represenation of a state, e.g., "clutch open/close, ignition on/off".
Best regards,
Henrik
