Every HMI has a gauge, an indicator or a small panel that no standard widget draws exactly the way you want. In eScada you draw it yourself, with two open standards everybody knows: SVG for vector drawings, HTML5 with CSS and JavaScript for anything a web page can show. The widget is yours, with the look your product deserves, and it lives in the project like every other resource.
Drawn once, kept in the project
The Resources context of eScada.Dev.Manager has two sections for them, HTML documents and SVG documents. A document is written or imported there, edited in its own editor and checked in a preview; the HTML editor also inserts the symbols of your tags and the images and animations of the project. Like images and sounds, a document can have one variant per language, and the Client shows the one of the active language. Documents move between projects with import and export, so a widget made once becomes part of your own library.
On the pages, the SVG Document widget draws an SVG document, while the HTML v3.2 Window and HTML v5.0 Window widgets show an HTML document: you choose the document by name, and the widget does the rest.
Alive with the values of the plant
Inside a document the values are written as symbols, {%tag:item%}, the same notation used everywhere in eScada. Before showing it, the Client replaces every symbol with the current value, and when a value changes it updates the widget by itself: no timers in the document, no refresh time to set. An HTML document updated in place does not flash, even with several of them on the same page.
What has to be computed, an angle, a length or a colour, comes from an expression in the Parameters tab of the widget, which replaces a text of the document, for example {VALUE}, with the result, so the document only has to show it. Many widgets can therefore share the same document, each one with its own tags and parameters.
SVG or HTML
The SVG Document is drawn by the Client on the page itself. What the drawing leaves transparent is really transparent, and the widget takes its place among the other drawn objects in the order you choose, so a gauge can sit over a background drawing or an image. It scales without losing quality, and it can be resized, rotated, flipped and animated like any other widget. The drawing engine covers the static part of SVG, what a synoptic needs: no scripts, filters or SVG animations, since the movement comes from the values.
The HTML v5.0 Window uses the web engine of the platform: full pages, styles, scripts and the libraries your team already uses for charts, dials or small dashboards. Its links can even run the actions of the project.
The first version from an AI assistant
Both are plain text in open formats, and this is where an AI assistant shortens the work: describe the gauge you have in mind, paste the result in the editor of the project and put the symbols of your tags where the values belong. You quickly get a widget that looks modern and stays sharp from a compact panel to a supervision screen. The Pictures guide lists what the SVG engine supports and the habits that keep an HTML document simple and quick.
SVG images too
SVG files can also be imported as plain image resources and used wherever an image is expected, keeping logos, symbols and technical drawings sharp on every screen and resolution.