Workflow to Retrieve Behavior Experience Data

You can create a report template to retrieve behavior experience data. Behavior experience data, such as variable values, plots, watchlists, and signal operator probes, is created in Behavior Experience.

Important: Plots are static vector images. You cannot interact with the plots.
Recommendation: In the following scenario, the variable default names are kept. Customize these names to clarify the report template.


Before you begin:
  1. In Behavior Experience:
    1. Create one or more scenarios from a model from Dymola Behavior Modeling or a functional or logical behavior from Functional & Logical Design.
    2. Add comments on the scenarios.
    3. Define plots and watchlists to include plots in the example below.
    4. Define signal operator probes to include the results of the signal operator probes.
    5. Simulate and generate results.
    6. Run the plots that you want to report, including the plots of watchlists.
    7. Save.
  2. In Report Template Design:
    1. Create a report template with the title System Behavior Template. For more information, see Adding Templates.
    2. To open the report template, click Menu and select Open in Editor .
See Also
About Workflow Overview
  1. To define this example of a report template for behavior experience data:
    1. From the Parameters area of the Properties tab, click New .
    2. In the Type list, select System Behavior Simulation.

      Important: This example is created from a model from Dymola Behavior Modeling. If you instead create it from a functional or logical behavior from Functional & Logical Design, select Functional Simulation or Logical Simulation instead, respectively.

    3. In the Name field, enter behavior.
  2. To display and access the model name:
    1. From the Structures tab, drop Paragraph into the work area.
    2. From the Data tab, expand the following variable and category, and then drop the method to the work area:
    Variable and Types Category Method Work Area
    behavior: System Behavior Simulation Simulation Data Model Paragraph
  3. To access the simulation data in general:
    1. From the Data tab, expand the following variable and category.
    2. Drop the method to the work area:
    Variable and Types Category Method Work Area
    behavior: System Behavior Simulation Simulation Data Scenarios Empty space (below the paragraph).

    Rename the created iteration variable scenario.

  4. To present and access the scenario names:
    1. From the Structures tab:

      1. Drop Section into the Loop of Scenarios of behavior: scenario.
      2. Drop Text into the section title.

    2. Click the text element, and enter Scenario: in the Text field of the Properties tab.
    3. From the Data tab, expand the following variable and category, and then drop the method to the work area:
    Variable and Types Category Method Work Area
    scenario: Scenario Simulation Data Name Section title, after Scenario:
  5. To present and access the scenario comments:
    1. From the Structures tab, drop Paragraph into the section.
    2. From the Data tab, expand the following variable and category, and then drop the method to the work area:
    Variable and Types Category Method Work Area
    scenario: Scenario Simulation Data Comment Paragraph (in the section)
  6. To present and access the scenario parameter names and values:

    These parameters are the start time and the stop time of the scenario.

    1. From the Structures tab:

      1. Drop Table into the section.
      2. Drop Row into the table, under the header row.
      3. Into the first cell in the header row, drop Text, click it, and enter Name.
      4. Into the second cell in the header row, drop Text, click it, and enter Value.

    2. From the Data tab, expand the following variable and category, and then drop the method to the work area:
    Variable and Types Category Method Work Area
    scenario: Scenario Simulation Data Parameters Table, between the header row and the row.
    Important: After dropping, to include the row of the table in this loop, move the row of the table into the loop.

    Rename the created iteration variable param.

    param: Parameter Simulation Data Name The first cell of the table row in Loop on Parameters of scenario: param
    param: Parameter Simulation Data Value The second cell of the table row in Loop on Parameters of scenario: param
  7. To display a header for the simulation results:
    1. From the Structures tab:

      1. Drop Paragraph into Loop on Scenarios of behavior: scenario, at the end of this loop.
      2. Drop Text into the paragraph, click it, and enter Results.
      Tip: You can select to have a bold underlined text.

    2. From the Data tab, expand the following variable and category, and then drop the method to the work area:
    Variable and Types Category Method Work Area
    scenario: Scenario Simulation Data Results Loop on Scenarios of behavior: scenario; after existing items.

    Rename the created iteration variable result.

  8. To display the name of the results, and to access plots and probes:
    1. From the Structures tab, drop Paragraph into Loop on Results on scenario: result.
    2. From the Data tab, expand the following variables and categories, and then drop the methods to the work area:
    Variable and Type Category Method Work Area
    result: Result Simulation Data Name The paragraph in Loop on Results of scenario: result
    result: Result Simulation Data Plots Loop on Results of scenario: result, after the paragraph.

    Rename the created iteration variable plot.

    result: Result Simulation Data Probe Results Loop on Results of scenario: result, after the Loop on Plots of result: plot

    Rename the created iteration variable probe.

  9. To manage the display of the plots data:

    Plots data include both live plots and plots from watchlists.

    1. From the Structures tab:

      1. Drop List into Loop on Plots of result: plot.
      2. Drop Paragraph below the inserted list item.

    2. From the Data tab, expand the following variables and categories, and then drop the methods to the work area:
    Variable and Types Category Method Work Area
    plot: Plot Simulation Data Plot Name First paragraph in the list item inserted in Loop on Plots of result: plot
    plot: Plot Simulation Data Plot image Second paragraph in the list item inserted in Loop on Plots of result: plot
  10. To present and access the probe results:
    1. From the Structure tab:

      1. Drop Paragraph into the Loop on Probe Results on result: probe.
      2. Drop Table into the Loop on Probe Results on result: probe, after the paragraph.
      3. Drop Row into the table.
      4. Into the first cell in the header row of the table, drop Text, click it, and enter Signal Operator.
      5. Into the second cell in the header row of the table, drop Text, click it, and enter Value.

    2. From the Data tab, expand the following variable and category, and drop the method to the work area:
    Variable and Types Category Method Work Area
    probe: Probe results Simulation Data Probe Result Name Paragraph in Loop on Probe Results of result: probe
    probe: Probe results Simulation Data Signal Operator result Table, between the header row and the row.
    Important: After dropping, to include the second row of the table in this method, move the row of the table into the loop.

    Rename the created iteration variable signalOperator.

    signalOperator: Parameter Simulation Data Name The first cell of the table row in Loop on Signal Operator result of probe: signalOperator
    signalOperator: Parameter Simulation Data Value The second cell of the table row in Loop on Signal Operator result of probe: signalOperator


When you preview the report template, a part of it may look like: