Panel
- Overview
- File Menu
- Edit Menu
- Player Menu
- Recorder Menu
- Help Menu
- Scene View
- Configuration View
- Snapshots View
- Logging View
- Controls View
- Transitions View
- Statistics View
- State Machine View
- Value Generator
- Zooming
- Rotate
- Data Bindings
Overview
Description
The Panel is a control tool for the Player application. It visualizes all the mentioned feature blocks in the Features section.
Hotkeys
Following shortcuts are available for CGI Panel:
| Hotkeys | Description |
|---|---|
| Ctrl+O | Open asset |
| Ctrl+S | Capture screenshot |
| Ctrl+Shift+S | Capture screenshot (select file) |
| Ctrl+P | Open settings |
| Ctrl+I | Single invalidation |
| F1 | Documentation |
Interface
File Menu
offer commands that allows to control how the application runs.
Options:
- Start application ... - opens a dialog window which allows to configure and start the application.
- The configuration options are:
- Device: allows to choose the device from a dropdown list.
- Asset Library Path: allows to set the full path to the asset.
- Mode: allows to decide if the Player will be started as an application or by a script.
- Application Mode
- Application: allows to set the path to the Player executable.
- Parameter: allows to set a parameter which shall be passed to the application.
- Script Mode
- Script: allows to set the path to the script.
- Parameter: allows to set a parameter which shall be passed to the script.
- Wait for script to finish: configures whether the panel should wait or not until the script has finished.
- Attach - attaches the panel to a running Player.
- Settings... - opens a dialog window which allows to configure the Cgi Panel.
The configuration options are:- General
- Show first scene: enables that the first scene is automatically loaded at start time.
- On Panel close - Application shutdown: if enabled the applications started by the Player will be shutdown automatically.
- Panel Network Connection
- Connection timeout (ms): sets a timeout for network connection.
- IP-Address: sets a custom IP address of the network control.
- TCP/IP - Port: sets a custom TCP/IP port of the network control.
- Monitoring
- Use customized monitoring settings: allows to set custom setting for the monitoring (TCP/IP-Port, Serial-Port and Serial-Baudrate).
- Recording
- Snapshot directory: defines the location where the snapshots shall be stored.
- Asset directory: defines the location of assets which will be loaded.
- General
- Open workspace: opens in File Explorer the directory were the CGIPanel.exe resides.
- Exit: closes CGI Panel.
Edit Menu
Options:
- Undo: undo last action.
- Redo: redo last undone action.
- Cut: cut text.
- Copy: copy text.
- Paste: paste text.
- Delete: delete text.
Player Menu
Options:
- Unblock application: unblocks an application which is currently in the waiting state.
- Render statistics overlay: enables or disables the render statistics overlay within the scene.
- Render wakeup: enables or disables the render wake up mechanism.
- Continuous invalidation: enables or disables continuous invalidation. (Please note that it should be disabled when Dirty Area Management feature is used)
- Single invalidation: sends a single 'invalidate all' message.
- Destroy scenes: enables or disables the destroying of the scenes as soon they are hidden.
- Scripting system: enables or disables the script system.
- Screenshot: saves a PNG file for each display in the folder of the loaded asset.
- Save Screenshot as...: saves a PNG file for each display but the location can be set via "Save as ..." dialog.
Recorder Menu
Options
- Play...: shows the Open dialog to give the path to a recorded file that will be played.
- Record: enables or disables the recording of application handling.
- Record Touch Hover: enables or disables the recording of touch hover messages.
- Restrict action interval to 500ms: restricts the action interval to 500 ms.
Help Menu
Options:
- Documentation: opens the CGI Studio Documentation
- About...: opens a window which shows information about the application.
Scene View
The scene view is a central component of the CGI Panel. A scene can be shown or hidden by checking or unchecking the checkbox of a scene. Based on the selected most of functionality chooses its content. This includes for example animations and controls.
Configuration View
The Configuration view presents information about the features enabled in the Player.
Snapshots View
The Snapshots view allows to take snapshots and also shows the last snapshots taken.
Logging View
The Logging view allows to enable or disable the logging and also to set the log level for the main realms.
Controls View
The controls view shows all controls of a selected scene. Selecting a control opens a table of all the properties and its values. Changing the value will also change the value in the application.
Transitions View
The transitions view is available to trigger transitions. This happens by drag and drop from the scene list into the deactivation or activation area. A deactivation scene will be hidden and an activation scene will be shown at the end of a transition. More than a single scene can be added to the lists. The transition will be executed by pressing the Run button. The swap button swaps the list. So it will revert the execution. More of the transition instances can be created to keep one but create a second one. These transitions are kept only for a single session.
Statistics View
The statistics view shows memory consumption statistics and it is only available when the CMake flag "CANDERA_VIDEO_MEMORY_STATISTIC_ENABLED" is set.
State Machine View
This view shows a log which describes the states for all state machines.
Value Generator
This feature provides the possibility to simulate the change of values on view elements. With this, view elements can be simulated without logic implementation.
Selecting a property to simulate
In the CGI Panel, select a scene and click on the Controls tab. This will display all controls and their properties.
Checking the Simulation checkbox of a property will create a simulation entry inside the Value Generator tab.
The Editor column defines the type for the property. Based on the Editor, the simulated value will be calculated.
Modifying simulation properties (of a selected property)
The properties which have been selected in the Controls tab, are created in the Value Generator tab.
- The Value Generator tab contains general configurations, serialization and the configuration of all simulated properties.
- The Sample Rate defines the update rate of the simulated properties. This sample rate is applied to all simulated property entries.
- Each simulated property entry has a predefined set of configurations.
- Data type
The simulation supports different datatypes. This includes double, float, all int types and special datatypes like size/coordinates and color.
If default editor is selected, it will try to guess the datatype based on the property name. Each value of a complex datatype can be set individually.
The sample below simulates a color:
- Value Simulation
This represents the simulation algorithm that will be used to calculate the value.
The following list shows the different graph types and and some variants when modifying its configurations.
- Constant (Updates the value with the same value)
- Saw Wave
- Triangle
- Power (Power of 1 - linear, Power of 3)
- Sine Wave (Sine, Cosine)
- Random (No Visualization available)
- Toggle (Toggles between 0 and 1)
- Bounce (Bounces 0, Bounciness 0.5; Bounces 3, Bounciness 0.20)
- Minimum and Maximum range
The minimum and maximum range of values. - Period and Offset (ms)
The x value into the function is shifted by the offset. It shifts the graph, therefore the output value is also shifted. However, currently, offset is only supported in Sine wave. (limitation)
- Data type
Starting the Value Generator simulation
Pressing the clapperboard icon will start and stop the simulation.
The simulation of a single property can be paused by the checkbox next to the property name.
It can be completely removed by pressing the X button on the right side of the name.
Serialization
The simulation configuration can be saved as an xml file and loaded again.
It is possible to load a simulation file when loading an asset.
It can also be loaded at Panel startup by using the command line: --sim <filename>
In this case, the simulation will be directly started.
Zooming
This feature was created to assist in developing high- or low-resolution HMIs. Developers of low-resolution HMIs can zoom in, developers of high-resolution HMIs can zoom out.
It may also be convenient if you want to take a closer look and examine the HMI in detail.
- The first icon of the toolbar resets the zoom level of every host application display.
- The second and third icon are for zooming out and zooming in. The zoom level is adjusted by 5% on every button click.
- The fourth option of the zooming toolbar is a filter that can be enabled to improve the visual output when zoomed in.
The current zoom factor and whether the filter is enabled is displayed in the Player's titlebar.
Please be aware, that while using zoom, the output is not pixel exact anymore.
Rotate
This feature simulates a physical rotation of the display. The toolbar allows to rotate the Player's display clockwise. You can choose to rotate it by 0° (default), 90°, 180°, or 270°.
Data Bindings
In Data Bindings tab, you can load a predefined data binding file and perform various customisations and simulations using the Value Generator.
| 1 | Load XHCDL button |
Use this button to load an xml file containing predefined data bindings. The file format is *.xhcdl and files created with the following structure in the file can be loaded. The following naming convention inside of the xhcdl is required:
|
| 2 | Name | The data binding item name specified by “item name” in the loaded xhcdl file is displayed. The names specified as “bindingSource name” in the xhcdl file that has been loaded are displayed in the above image in section 7. |
| 3 | Alias name | You can set a custom name for the data binding item name. This name will persist on Panel closing. |
| 4 | Value | Set the data binding value. After entering the value, a request to update the data binding value will be sent to the player. |
| 5 | Sim | Items with this checkbox checked can be simulated on the Value Generator tab. |
| 6 | Datatype | Change the data type. Select the any data type from the pull-down menu. After setting the data type, a request to update the data binding datatype will be sent to the player. |