Co-Simulation – Structure Type Support

You can launch the Type Editor in ControlBuild from the Project menu, under the Variable Configuration submenu. Save the definition in the Configuration folder, within the structure.xml file.


Before you begin: To perform this procedure, you must have both on the same computer.

In ControlBuild, the Type Editor allows for the definition of new data types, such as derived types, enumerations, and structures. This provides a solution for integrating these types into co-simulation with DELMIA

  • Derived type: The specialization of a native type to represent, for example, a physical quantity. Rather than referring to an LREAL, we would use LENGTH, even though the system internally continues to handle them as LREAL values. Derived types are supported as long as the underlying native type is also supported (not supported types: TIME, DATE, TIME_OF_DAY, and DATE_AND_TIME).
  • Enum: An enumeration is a data type used to replace numerical values with a list of explicit, human-readable names. Enums are integrated as integers, though their semantic meaning will be lost. The Enum is a special case of a derived type.
  • Structure: A structure is a complex data type that groups multiple variables of different types under a single name to represent a coherent object. Structure members can be simple variables or arrays of native types, derived types or Enums.
  1. Open Simulation Options, Resource Simulation.
    See Simulation Options Dialog box.
    1. Activate: Enable co-simulation
    2. Enter ControlBuild.exe path (use auto-detection if ControlBuild is running)
    3. Enter Application folder path: …...\Project_structure_PES\Applications\app\functional\app
    4. Deselect: Synchronous controls
    5. Deselect: Data loss monitoring
  2. In the Sequencing tab, select the root node.
  3. Launch the simulation.
  4. Open Signals Monitoring and expand all levels under the root.
    Add a status breakpoint on:
    1. IO_enum
    2. IO_length
    3. IO_STR_length
  5. Play forward.

    After each breakpoint hit, visualize the changes in ControlBuild.

    • First hit: my enum = start
    • Second hit: my length = 4.458
    • Third hit: my_struct = {start, 187.458}
    • Fourth hit: Inconsistency is detected.