Modify the shape
In many cases the best way to show the state of the process is to change the shape of an
object. It can be a gate that is viewed open or closed, or a padlock that is locked or
unlocked. This can be achieved by using subgraphs with two pages or more.
One example of an subgraph with several pages is Smiley.
Subgraphs with several pages are handled by the dynamic types DigShift, DigLowShift,
AnalogShift and Animation.

Fig Example of an subgraph with several pages
- DigShift shifts between two different pages dependent on a digital signal.
- AnalogShift shifts between several different pages dependent on an analog signal.
- Animation plays a number of pages with a certain speed so you get the impression of
motion.
Shift between two pages
The dynamic DigShift can be used for a subgraph with several pages. It is connected to a
digital signal and shifts between the first and the last page dependent on if the signal
is high or low.
We use the Smiley subgraph to demonstrate DigShift. Smiley has the dynamic AnalogShift as
default, and we first have to remove this by resetting Inherit in DynType. Instead we
set DigShift in DynType, and connect the signal H1-Dv1 to DigShift.Attribute.

Fig Dynamic DigShift selected
The result is displayed in the figure below. When the signal is low the first page of the
subgraph is viewed, and when the signal is high the last page is viewed.

Fig Low signal to the left and high signal to the right
Shift between several pages
AnalogShift is connected to an analog signal, and can shift between several pages. The value
of the analog signal will specify the index for the displayed page. When signal value is 0
the first page is displayed, when the value is 1 the second page is displayed etc.
The subgraph Smiley has AnalogShift as default. All we have to do is to connect it to an
analog signal. We connect it to H4-Av1.

Fig Dynamic AnalogShift
Smiley contains 6 different pages. When the signal is 0 or less than 0, the first page is
displayed, and when the signal is 1 the second page is diplayed etc. When the signal is 5 or
greater than 5, the last page is displayed.

Fig The value of the signal is 0 to the left and is incremented by 1 for each picture
Animation
TODO...

Fig Animation to open/close a padlock