Skip to main content

HMI Logic Configuration

This section describes how to configure the configurationGauge procedurecontrol forto forward its value to the TextValue control using Fusion to transfer gauge (needle) values to text placed in the center of the gauge.Fusion.

To apply logic to nodes without programming, CGI Studio provides a feature called Behaviors. Behaviorsto canapply belogic usedto for a variety of purposesnodes without havingprogramming. The built-in behaviors provided in SceneComposer offer great versatility, thanks to createtheir newextensive behaviorsconfiguration bypossibilities. setting the properties of the behaviors prepared for each purpose. One ofcommon the usesuse of behaviors is toevent-based linklinking, viawhich events. Using events,allows data canto be easily senttransferred between two behaviors.

Fusion combines a behavior tree view that appears to the right of a selected node in the scene tree (extra scene tree) and a properties panel for the selected node. This provides an alternative way to manage behaviors. As a result, Fusion allows you to structure your scene interactions in a more graphical and intuitive way.


  1. FromIn the Solution Explorer,Explorer double-click [ Scenes>Car_Cluster ]Car_Cluster].
    • "Car_Cluster" will appear in the scene tree.
    • An extra scene tree will appear to the right of the scene tree.

  2. SelectIn the Scene Tree panel select the RPMGauge control, andthen in the Extra Scene tree, click [ Fusion... ] in the Extra Scene Tree.
    • Switches to the Fusion panel andwill displaysbe opened, displaying the Fusion diagram offor the RPMGauge control.
       The diagram only contains one Fusion Node: RPMGauge.
      drawing-4-1730460832.pngdrawing-4-1730460832.png

  3. DragThe andRPMGauge's moveFusion theNode mouseoffers overa theBehaviors connector in theits uppertop right corner of(a white circle next to the RPMGaugelabel Fusion"Behaviors"). nodeDrag inthis theconnector, Fusion diagram andthen release leftit click anywhere.again.
    • The [ Select Behavior ]Behavior] dialog will appear.be displayed.

  4. EnterIn the [Select Behavior] dialog enter "Forward Value" ininto the search field at the top of the dialog.top.
    • The list of behaviors in the dialog will be narrowed down to [ Value Processing > Forward Value ]Value].
      drawing-4-1714388659.pngdrawing-4-1714388659.png
  5. Double-click [ Forward Value ]Value].
    • A new Fusion Node "Forward Value" has been added to the diagram.
    • The RPMGauge Fusion node and the FowardForward Value Fusion node are connected by a link.

    • ClickIn the Forward Value Fusion node, click on the select item icon on the right side of the [TargetNode] TargetNode ] section in the Foward Value Fusion node.section.
      • The [ Choose Item ]Item] dialog appears.will be displayed.
        drawing-4-1714388721.pngdrawing-4-1714388721.png

    • FromIn the list[Choose onItem] dialog navigate to the leftTarget sideNode oflisted in the dialog,table double-below, then click on [ Scenes>Car_Cluster>RPMGauge_Group>RPMValue ]OK].
      • [ RPMValue ]RPMValue] is displayedconfigured into be the [Target TargetNodeNode ] section inof the FowardForward Value behavior.
    • The RPMGauge control is configured to forward its value to the  TextValue control "RPMValue".
      Fusion node.Node Target Node RPMGauge > Forward Value  Scenes > Car_Cluster > RPMGauge_Group > RPMValue
      drawing-4-1714389489.pngdrawing-4-1714389489.png

    • PerformIn the stepScene Tree panel select the SpeedGauge control, then click [Fusion...] in the Extra Scene Tree. Perform steps 2 through step 7 abovesimilarly for the "SpeedGauge" controlcontrol. asConfigure well.Forward Value node's Target Node according to the table below.
      • SpecifyThe SpeedGauge control is configured to forward its value to the  TextValue control "SpeedValue".
        Fusion Node Target Node SpeedGauge > Forward Value [ Scenes > Car_Cluster > SpeedGauge_Group > SpeedValue] as the connection target.

    TheWith abovethe operationconfiguration described above, the values from the RPMGauge and SpeedGauge controls are automatically transfersforwarded to the valuecorresponding TextValue controls, RPMValue and SpeedValue. 

    To verify the functionality of this configuration switch to the Scene Editor panel. In the Scene Tree panel select one of the RPMGauge/SpeedGaugeGauge controlcontrols toand RPMValue/SpeedValue.modify Theits value property in the centerProperties ofpanel. You should see the gaugecorresponding displayedTextValue node update in the sceneScene editorEditor panelaccordingly.

    will

    If changethe TextValue node does not update automatically, press the <F5> key on your keyboard to "150"refresh forthe each.view.

    Operation checks related to this setting can be performed here. During simulation, the gaugevalue at the center valueof changesthe gauge dynamically updates in accordancesync with the movement of the gauge needle.