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.
FromIn the SolutionExplorer,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.
SelectIn the Scene Tree panel select the RPMGauge control,andthenin the Extra Scene tree,click [Fusion...] in the Extra Scene Tree.Switches to theFusion panelandwilldisplaysbe opened, displaying the Fusion diagramoffor the RPMGauge control.
The diagram only contains one Fusion Node: RPMGauge.

DragTheandRPMGauge'smoveFusiontheNodemouseoffersoveratheBehaviors connector intheitsuppertop right cornerof(a white circle next to theRPMGaugelabelFusion"Behaviors").nodeDraginthistheconnector,Fusion diagramandthen releaseleftitclick anywhere.again.- The [
SelectBehavior ]Behavior] dialog willappear.be displayed.
- The [
EnterIn the [Select Behavior] dialog enter "Forward Value"ininto the search field at thetop of the dialog.top.- The list of behaviors in the dialog will be narrowed down to [
Value Processing > ForwardValue ]Value].


- The list of behaviors in the dialog will be narrowed down to [
- Double-click [
ForwardValue ]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 [
ChooseItem ]Item] dialogappears.will be displayed.


- The [
FromIn thelist[ChooseonItem] dialog navigate to theleftTargetsideNodeoflisted in thedialog,tabledouble-below, then clickon[Scenes>Car_Cluster>RPMGauge_Group>RPMValue ]OK].- [
RPMValue ]RPMValue] isdisplayedconfiguredinto be the[TargetTargetNodeNode] section inof theFowardForward 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


PerformIn thestepScene Tree panel select the SpeedGauge control, then click [Fusion...] in the Extra Scene Tree. Perform steps 2 through step 7abovesimilarly for the "SpeedGauge"controlcontrol.asConfigurewell.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]astheconnectiontarget.
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.
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.