Table of Contents

Dashboards

In WebHMI, screens or dashboards (Dashboards) are analogous to screens for operator panels or graphic screens in SCADA systems.

Since the 3.6 fw version, there is a new visualization tool - screens which are much more flexible and efficient than dashboards. Most tasks can be easily done with screens only. Use dashboards as a complement for the screen to create custom design.

An overcharged and bulky dasbboard can slow down system performance.

Creating and managing dashboards

You can create multiple screens that will be available after you create them in the Dashboard menu. For example, let's create the 'The only dashboard' screen, using the menu item 'Setup / Dashboards'.

The basic info tab has the following settings:

But if it is the only dashboard, its title will be displayed in the side bar without Dashboards or Category entries:


Templates tab - allows multiple usage of the same dashboard graphic with different (but similar) physical connections and registers. More on this in special section. for i in {602..599}; do history -d $i; done


Permissions tab - here you may select which users can access this dashboard.

Dashboard list


  1. go to the dashboard page for viewing
  2. go to the dashboard page for editing
  3. modify dashboard's settings as were described above
  4. delete dashboard from the list
  5. clone - creates a copy of this dashboardThere is a possibility to see all the dynamic properties that is set to dashboard elements.

It is can be useful e.g., for making clone of dashboard, and to not forget to rebind registers to avoid inappropriateness or just to get to know about dashboard element's behaivour.

Show hidden checkbox

Due to cleanliness and convenience there is a possibility to hide visual display of a picture only in the editor, but it still be visible on dashboard. To see this objects there is an another checkbox. With this checkbox you can show hidden objects via Object Inspector, but not via "Hide" checkbox. It will make borders visible or dynamic properties if it is present.

You can arrange the order in which dashboards are shown in the side bar by dragging rows in the list.

Editing


You can start editing dashboard either from the dashboard workspace or from the (2) button in the list:

The editor layout is given below:

  1. Workspace
  2. Tool pallette
  3. View/edit switch mode button and save changes button
  4. Bottom and right margins are moved to set dashboard size
  5. Cursor coordinates

Workspace

The objects are placed and arranged in the workspace.

The grid facilitates neat alignment of the objects. Bold lines are placed at x2 interval of the actual grid size defined in settings so the grid size is a distance from bold line to thin one.

Holding Shift down while moving an object switch off gluing to grid for precise placement.

Zooming is possible with a mouse wheel scroll.

In a large zoom, Pan is possible with mouse wheel pressed.

Multiple selection is possible in two ways:

Hotkeys:

Mouse Right - click activates context menu if there is an object at the cursor position (if there are many objects, a selection list will be provided).:

Tool pallette

There are three tabs in the Tool Pallette: Controls - to pick up a control for workspace

hidden_editor Properties - to modify control's properties

Group - group operatoins for selections with more than one control

> - toggles toolbox location from left to right

Dynamic properties


The controls reflects the process or system being monitored state changings its properties which in their turn are linked to the register values. This is called dynamic properties. For exammple, a button coordinates, layer, size are static (constant), while the button text or color may change dynamically.

- this mini button marks the control's property which can be dynamic. E.g. for the LED control these properties may be dynamic:

If the element has dynamic property enabled, this button becomes colorized:

The example of dynamic property setup dialog is given below:

In the example the Color property of the LED is controlled from the DS0 register . If the register has 0 or 1 value, color property will change accordingly to green or red (also it will blink when DS0 = 1).

Propertiies can match not only to specific register values, but to state, bit, or some range:

The Add button serves to extend the properties set, with only exception - if you choose get register's value, then this value itself will become color RGB mask, height in pixels, rotation angle or other control's property.

Default value will be applied to a property if the register's content does not match any rule.

These properties are all with dynamic settings and won't duplicate in the control explanations:

Controls description before 3.4 fw version


The overview of controls is presented on the following animated picture. This set is for WebHMI firmware version up to 3.4 version. For 3.5 and above versions there are extra controls available which will be given in the end of the article.


LED control

LED has the following properties:

(d) - means the property can be dynamic

In the followed control descritions only specific attributes for the given element will be explained (without repetition from previous element explanations).


Text value

After click on the text with 'allow change value' enabled, a pop-up dialog will displayed:

(d) - means the property can be dynamic


Button


Image


Progress bar


Gauge

The gauge imitates physical metering device with arrow or other point moving along the ruler. And has almost the same settings as in progress bar:


Round gauge

The round gauge also imitates physical metering device with rotating arrow.

The dynamic properties are:


Slider

The slider also imitates physical sliders allowing to set value and see it's current value as position.

The dynamic properties are:


Edit Box

The edit box is almost the same as text control but allows to edit value without pop-up dialog like in text control.


Recipes list

You can select which recipe to apply with this control.


Video stream

If there is configured video stream in the project, it can be shown on the dashboard with this control.


Group

Several controls related to some device, unit, area etc. can be distinguished with group for convinience.


Messages table

The messages from the message log can also be shown on the dashboard with this control.


Trend

Up to three register values can be displayed in a trend for the dashboard.

Controls available from 3.5 fw version and above


Radial indicator

This control resembles a progress bar that has a round shape.


Polyline

The polyline has multiple segments and nodes. You can change its width, corners radius, add arrows and make it dotted. With Closed polyline checkbox, two ends nodes will combine into a single one.

There are new properties for the polyline and every control in the 3.5 fw and above:

—-

Rectangle, ellipse and circle

There are ready shapes with properties adjustments similar to previous controls.

Switch

This control toggles value between two values, and has similar properties to button. You can also run script, apply recipe etc.

Dictionary list

This control gives the possibility to choose some pre-defined options in the dropdown list aka picker. The prerequisite for this control is that the register you want to bind to it, should already have link to the existing dictionary. You can also create a lua script that will run upon this register change and load some data to the dashboard or make other actions.

This control is available staring from fw 4.0.7161, and before that recipe dropdown lists had been used for the same purpose.

Object inspector

The object inspector makes it easy to work with components on the dashboard, displaying them in a tree, as in graphic editors. With it, you can quickly select the necessary objects and perform the necessary manipulations with them: copy, delete, group, hide, change attributes for several objects etc.

To change the attributes of the selected individual item, you just switch to Properties tab right after object selection.

Right click on the object in the tree, gives more options:

Pop-up dashboard

The pop-up dialog can be done with this type of dasboard.

To create a pop-up dashboard you use link to dashboard property for a button and then there will be checkbox to make the dashboard a pop-up one.

Newer controls available since 4.1 fw version

Mode indicator

A typical task when visualizing multi-step or multi-mode production processes is showing their actual state with the dictionary, like “Standby”, “Mixing”, “Discharge” etc. The mode indicator is a handy tool, showing all possible states of an object and highlights the current state, that shows clearly what will be the next, what was before, we are starting or finishing. The component is linked with the register, which in turn is linked with the dictionary, and then you just write to the register a number, reflecting the process state.

Date picker

The date picker for dashboards – is a common user interface calendar date picker element, which accepts user input and stores it as a single unix time number in an internal register. Using embedded lua functions you can get required day, week day, hour, mituen etc. and use them in the control logic. Before a whole dashboard with many fields would have been required for this.

Increase/decrease value in the edit value contro

Edit box has got new features – now you can increment/decrement value with software buttons. This mode is more convenient on mobile devices, not involving a keyboard for entering a value.

Dynamic properties inpector

Show dynamic properties checkbox

There is a possibility to see all the dynamic properties that is set to dashboard elements i.e. values of registers to be displayed. To do this, click on the icon in the left bottom corner It is can be useful e.g., for making clone of dashboard, and to not forget to rebind registers to avoid inappropriateness or just to get to know about dashboard element's behaivour.

Show hidden checkbox

Due to cleanliness and convenience there is a possibility to hide visual display of a picture only in the editor, but it still be visible on dashboard. You can hide this via Object Inspector. Hidden object will dissapear from editor and can't be selected anymore. Despite, it still visible on the dashboard. Due to cleanliness and convenience there is a possibility to hide visual display of a picture only in the editor, but it still be visible on dashboard.

To see this objects there is an another checkbox. With this checkbox you can show hidden objects via Object Inspector, but not via "Hide" checkbox. It will make borders visible or dynamic properties if it is present.

If there is dynamic properties it will look like this


JavaScript for dashboard

Sometimes, a project needs something missing in the firmware (in terms of visualization). Then it can be done with such a script, turn to your supplier for more details.

The following are some application examples:

1. The customer, after the completion of a large project, asked to change the color scheme for the screens to the appropriate “corporate style”, which would mean a large amount of work on redrawing the visualization. The question was solved by adding small javascript for the dashboard.

2. There was a task of creating a report based on the screen, in which the start and end times of the viewing window would be automatically set for the graph and the parameter(s) on the graph would be changed to desired.

3. “Smooth” movement of visualization elements without being tied to the scan time.

4. Drawing custom XY graph.

5. Other custom user interaction which can not be done with standard tools. E.g. with the dashboards made on templates, you can not make subsitutions in the descendants for some elements, like links to other dashboards. However, you may override the link property (which may lead to target page) of the button depending on the dashboard where this button is.

6. Downloading graph data with full data set. The graphs in WebHMI can be exported into csv/xls/html files, however, the output file will contain only the data corresponding current graph view scale (e.g. if your viewing area is 1024 px wide, only these data pixels will be downloaded). If you need to have full data export tool in the WebHMI project, you can make it with the JS for dashboards.

etc.

Object properties control example
// Image rotation example 
var IMAGE_ID = 2;
var currentAngle = 0;
 
function setAngle() {
    setObjProperty(IMAGE_ID, {angle:currentAngle}); 
    currentAngle = currentAngle + 10;
    if (currentAngle >= 360) {
	currentAngle = 0}
    }
}
 
setInterval(setAngle, 40); // will be called every 40 ms