You can use the discrete device states in a Discrete Device States node (

) as any other device variable in the equations of the same
Device Model. The states themselves have no equation and can only be assigned by an initial expression or by reinitialization expressions in
Explicit Device Events and
Implicit Device Events nodes (see below).
Fill the table with names of the states in the Name column, their initial expressions in the
Initial Expression column, and finally the dimensions of the states in the
Dimension column. For valid entries in the
Dimension column, see the
Variable Definition node.