Is it possible to have a "step change" with an analog value in a timing diagram?

0 votes
asked Aug 30 in Question / help by bdangus (120 points)
I tried implementing a step change by having two values at the same time, but I couldn't seem to bet what I wanted.  In the example below, I'm trying to get some step changes followed by a "ramp".

analog  "A" between 0 and 100 as A

@A
0 is 50
10 is 50
10 is 0
20 is 0
20 is 10
25 is 10
45 is 90
commented Aug 30 by bdangus (120 points)

I workaround appears to be to slightly offset the times of the step-change;

@startuml

analog  "A" between 0 and 100 as A

@A
0 is 50
10 is 50
10.1 is 0
20 is 0
20.1 is 10
25 is 10
45 is 90

@enduml


If I offset the time in the other direction, it seems to "mess up" the diagram scaling.  I'm not sure why:

@startuml

analog  "A" between 0 and 100 as A

@A
0 is 50
9.9 is 50
10 is 0
19.9 is 0
20 is 10
25 is 10
45 is 90

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...