Skip to content

Making Industrial Applications Match iPhone Expectations Why Qt is the perfect tool for modernizing your SCADA HMI

Supervisory control and data acquisition (SCADA) systems have been around since the 1950’s, far longer than most other types of computer applications. Their rock-solid performance has been responsible for the streamlining of any industry that needs precise and consistent controls: building automation, energy management, part machining, printing and packaging, robotic assembly, ship building, water treatment, woodworking, and many more. However, this long legacy can also carry a hidden drawback – the user interfaces of many SCADA devices are a flashback that looks more appropriate as part of Windows for Workgroups than the modern age.

This situation is ripe for change. Now that everyone carries superior user-interfaces in their pocket at all times, even the non-designers responsible for running the system expect their SCADA human-machine interface (HMIs) to have a certain level of polish and sophistication. Having implemented attractive SCADA HMIs for our customers, we’ve discovered that Qt is the right tool to build the modern SCADA system – here’s why.

Close to the Metal

SCADA interfaces to equipment that often has hard real-time requirements. In these cases, responding slightly late may be just as bad as not responding at all. You want the switch that flips the electrical grid to happen exactly when you tell it to – not after a brownout or an overload. With Qt’s C/C++ backbone, developers are able to get maximum performance from their SCADA applications. You can create code that talks directly to the hardware – no virtual environments, garbage collection, or unanticipated events happening in between.

The building blocks of any SCADA system are programmable logic controllers (PLCs), industrial computers that have a large number of I/O ports that are used to scan gauges or control actuators. The typical PLC implementation uses direct memory mapping to access its connected hardware, meaning you must be able to read and write to specific memory addresses. This is easy for C/C++ (and thus Qt), but not typically available in other languages.

Deployable Everywhere

Important to any modern SCADA system is flexibility – the HMI needs to be accessible from the embedded system, remote desktops, and roving mobile devices – something that is easily achievable with Qt.

On the embedded side, you need a platform that can run on PLC hardware. While not every PLC is capable of running a graphical interface directly on its hardware, those that can are very likely to run a real-time operating system like VxWorks, QNX, WinRT, INTEGRITY, and RTLinux. Qt supports these operating systems, making SCADA systems as simple to support as any other embedded system. SCADA HMIs are also found on the computers monitoring the systems in the back office, computers using standard desktop operating systems such as Windows, Linux, or macOS. And due to the increased capability and need for mobility, having SCADA HMIs running on phones or tablets is increasingly a needed product feature to support mobile trouble-shooters, supervisors, and headless machines. Of course SCADA apps on mobile devices must run on iOS, Android, and/or Windows 10, which is simple with Qt’s cross-platform support.

Thankfully, Qt is a very broadly used and actively supported platform that runs on all these operating systems and is easily adapted to others. Perhaps most importantly though, all of these platforms are supported from the same code base, allowing developers to build components that can run in all three environments – embedded, desktop, and mobile.

Modern HMI

To make a modern SCADA system, you need to incorporate modern user interface elements; the arcane keyboard commands, 2D sprites, and 8-bit graphics of yesteryear aren’t enough. All of the now expected user-interface paradigms, controls, and behaviours – like drag and drop; spinners, sliders, and splitters; touch, pinch, and zoom; tables and popups; and much more – are part of Qt. That makes it easy to design really attractive HMIs with controls and interactions that users will easily understand. To customize the appearance of the HMI for either customer-specific branding, or white-labeled products is a nice detail that enables your products to be tailored for each customer engagement. That’s relatively straightforward with Qt’s widget styling and easily modified Qt Quick screens. These features let developers make global style changes to the application in a few highly localized classes that will percolate throughout the HMI.

Many SCADA interfaces require three-dimensional models of the plant floor, building, or equipment being automated. That’s achievable with Qt 3D, an entire set of Qt classes that lets you build 3D objects and can take advantage of GPU hardware-accelerated graphics. Developers are able to directly import any necessary 3D models using assimp, the Open Asset Import Library. Another option is to use QOpenGLWindow, which allows developers to use OpenGL code more directly – a great option if there’s already OpenGL code that does what you want.

Video is used in SCADA to check remote locations and equipment, which allows a supervisor to monitor situations that may be dangerous or impractical for a person to always be physically present. Whether it’s making sure the cooling system for a nuclear power plant is operating properly, verifying a robot’s painting job for parts on an assembly line, or detecting a quality inspection machine that accepts incorrect products – remote cameras are a necessary part of many SCADA systems. Qt has APIs for embedding video streams in individual windows, letting a single HMI provide oversight of the entire operation instead of requiring dedicated video monitors.

Remote Observation and Control

Video isn’t the only important remote feature of a SCADA system. Even more important is the ability to remotely run the HMI. In these situations, the hardware supplies the data that is visualized on a remote tablet or desktop to allow operators from across the floor – or across the country – to keep tabs on their equipment. While that’s critical for PLC systems that have no displays, requiring people physically present at every machine is extremely inefficient. Any modern factory expects their SCADA equipment to have remote views and operation.

Qt has a number of tools very handy for remoting. Qt VNC provides a remote desktop using the standardized VNC protocol for perhaps the simplest solution. However, newer additions to the Qt family include WebGL for transporting 3D imagery and WebASM for speedy browser run code that allow even more customized remoting solutions. And for developers that want to link their back-end PLC to a unique front-end application, QRemoteObjects allows you to seamlessly share logical state information between the two machines.

Stable, Safe, and Secure

Another critical attribute of SCADA systems is their longevity. SCADA equipment may be deployed in the field for many years, even decades. It cannot afford to rely on tech fads or moving targets. Qt has been around a long time and is built on reliable, proven technology. The Qt Company offers Long Term Support (LTS) on select Qt versions, ensuring that those platforms will be stable, supported and maintained. Companies using Qt LTS can decide on what patches or relevant updates they wish to incorporate, keeping products relevant for years to come.

Depending on their industry, SCADA systems may fall under ISO or IEC certification requirements. To assist with that, the Qt Company also provides the Qt Safe Renderer.  A safety-critical system that uses the Qt Safe Render to implement its graphical warnings can be certified under ISO 26262 for automotive, EN 50128 for railway systems, IEC 62304 for medical equipment, or IEC 61508 for generic safety systems.

As SCADA is inherently dependent on remote control, security is an obvious necessity. Because Qt incorporates the latest SSL and TLS implementations, data exchange can be encrypted with the latest, safest, libraries. That enables SCADA systems with Qt to transfer data, HMI images, or control information securely.

Qt for SCADA

Here I’ve listed many of the reasons that Qt makes an excellent tool for those building SCADA systems, especially those who want to modernize their equipment’s HMI to reflect a more modern ascetic. Hopefully readers who are building the next generation of SCADA system will bring us HMIs that will make iPhone users take notice.

About KDAB

If you like this blog and want to read similar articles, consider subscribing via our RSS feed.

Subscribe to KDAB TV for similar informative short video content.

KDAB provides market leading software consulting and development services and training in Qt, C++ and 3D/OpenGL. Contact us.

FacebookTwitterLinkedInEmail

1 thought on “Making Industrial Applications Match iPhone Expectations”

  1. Hi,
    I’ve noticed few years that QML is indeed a perfect choice for SCADA systems. we ended up creating a framework called CuteHMI (https://cutehmi.kde.org/). I would really love to collaborate with some larger group (not necesarilly on CuteHMI), so please let me know if there’s such interest.

Leave a Reply

Your email address will not be published. Required fields are marked *