Specifying the Memory Location for State Variables

Code generation for a state machine may generate, depending on the option Hierarchical Code Generation and the use of hierarchy states with history flag, several state variables. Only one of them, the sm variable, is visible in the state machine editor; this variable is used to specify memory location for all state variables.

  1. Open the implementation editor for the sm variable (), e.g. as described in Opening the Implementation Editor for an Element (B).

    All fields in the Value tab, except Memory Location of Instance and Memory Segment, are disabled.

  2. In the Memory Location of Instance combo box, select the memory area where the element is located.

    The available selection depends on the current target.

  3. In the Additional Info tab, enter information for your code generator.

    This information is only for documentation purposes.

If you want to specify memory segments, see the ASCET‑SE user guide, chapter "Memory Segments", for details.

See also

State Machine Editor – State Variables

Project Editor – Statemachine Node

Opening the Implementation Editor for an Element (B)

Opening the Implementation Editor for an Element (A)

Opening the Implementation Editor for an Element (C)