# Simulation by Player

Use Player to check the behavior of the newly created cluster. This application allows you to view scenes from asset files and run simulations. An asset file is a file output by Scene Composer that contains the graphic resources of a scene and is loaded into Candera's graphics engine so that rendering can be performed.

#### <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Run Player </span></span>  


To start the Player, press the \[ Play selected scenario... \] icon in the toolbar.

<div drawio-diagram="5672"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-04/drawing-4-1714394310.png" alt=""/></div>

If the solution saving operation has not been performed before this operation is executed, a dialog box will appear prompting you to save the solution. In this case, press the \[ OK \] button in the dialog. An asset file will be automatically generated and opened with CGI Player.

When CGI Player is executed, three windows will appear as shown in the figure below.

<div drawio-diagram="6842"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-09/drawing-5-1726824092.png" alt=""/></div>

<div drawio-diagram="6093"></div>

<table border="1" class="align-center" id="bkmrk-window-1-this-is-a-c" style="border-collapse: collapse; width: 91.7284%; height: 104.188px; border-width: 0px; border-style: hidden;"><colgroup><col style="width: 13.9973%;"></col><col style="width: 86.0027%;"></col></colgroup><tbody><tr style="height: 28.7969px;"><td class="align-right" style="border-width: 0px; height: 28.7969px;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Window 1</span></span></td><td class="align-left" style="border-width: 0px; height: 28.7969px;">A command line interface for sending commands to CGI Panel.</td></tr><tr style="height: 29.7969px;"><td class="align-right" style="border-width: 0px; height: 29.7969px;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Window 2</span></span></td><td class="align-left" style="border-width: 0px; height: 29.7969px;">This display panel shows a simulation of the scene according to the settings.</td></tr><tr style="height: 45.5938px;"><td class="align-right" style="border-width: 0px; height: 45.5938px;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Window 3</span></span></td><td class="align-left" style="border-width: 0px; height: 45.5938px;">A graphical user interface (GUI) for detailed configuration of asset files called CGI Panel.

</td></tr></tbody></table>


#### Screen Transition confirmation

Player is used to confirm the screen transitions set up on the previous page.

1. <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Press the \[ Play selected scenario... \] icon on the toolbar to launch Player.  
      
    </span></span>
2. Click on the left and right indicators at the top left and right of the Player display.  
    
    - Click on the indicator on the right side of the "Car\_Cluster" scene to move to the "Incoming Call" scene.
    - Click on the indicator on the left side of the "Car\_Cluster" scene to move to the "Car\_Status" scene.  
        <div drawio-diagram="5292"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-02/drawing-4-1708474552.png" alt=""/></div>
3. Close the CGI Panel and exit Player. 
    - All three windows that were running will close.

#### Run simulation by Value Generator <span style="vertical-align: inherit;"><span style="vertical-align: inherit;"> </span></span>  


This section describes the simulation operation using the Player's Value Generator.

1. <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Press the \[ Play selected scenario... \] icon on the toolbar to <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">launch </span></span>Player.  
      
    </span></span>
2. <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">From the items displayed in the scene view of the CGI Panel, make sure that the "Scenes#Car\_Cluster" checkbox is checked.</span></span>  
    
    - If it is not checked, check it.
    - The checked scene will appear in the display panel.
3. <span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Click "Scenes#Car\_Cluster".</span></span>
    
    
    - "Scenes#Car\_Cluster" will be highlighted in red.
4. Click "Controls" tab in the CGI Panel.  
    
    - \[ Controls \] will be highlighted in red.
    - The controls included in the "Car\_Cluster" scene will be listed.
5. Click "SpeedGauge". 
    - The properties for "SpeedGauge" will be listed.
6. In the property list, check the Simulation checkbox under Value.  
    
    - "Value" is set to "Int32" by default, and simulation by Wave (sine) is applied.
7. Click the \[ Start and Stop Value Generation Mode \] icon on the CGI Panel toolbar to start the simulation.  
    
    - <span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Values are automatically generated based on the settings in the Value Generator tab.  
        </span></span></span><div drawio-diagram="6844"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-09/drawing-5-1726824244.png" alt=""/></div>
        
        <span style="vertical-align: inherit;"><span style="vertical-align: inherit;"> </span></span>

<p class="callout info">If Forward Value is set in the <span style="color: rgb(230, 126, 35);">[HMI Logic Configuration](https://doc316en.candera.eu/books/getting-started/page/hmi-logic-configuration)</span>, the gauge center value changes in accordance with the movement of the gauge needle.</p>


The Value Generator can be used to simulate changes in control values. This makes it easy to simulate controls without having to implement logic.