The Ignition Perspective Module’s visualization makes it easy to design applications for a variety of hardware types, including desktops, human machine interfaces (HMIs), and mobile devices. However, application development, design, and integration for HMI touchscreens differs from desktop and mobile use-cases. In this piece, we'll take a look at how touch events work with HMIs and the best practices for design and deployment of HMI applications and hardware using Perspective.
If you’d like to know more about selecting the right type of touchscreen HMI for your HMI application, check out OnLogic’s 7 Step Process to Selecting an Industrial Panel PC.
Modern operating systems are equipped to handle touch inputs out of the box. For comparison, I tested Windows 11 Pro, Ubuntu 22.04, and Ubuntu 24.04 operating systems for functionality consistency with OnLogic’s Tacton Panel PC platform.
The basic functionality consists of:
In general, using a single press (i.e., left click) is the best way to have users interact with screens. It provides a consistent experience across all platforms. Gestures can be helpful for navigating map elements (pinch & zoom), but navigation should be designed to work across all platforms. As a reminder, gestures will only work consistently on capacitive touchscreens.
You can further customize user interaction functionality based on Perspective Events. You can use events to execute a command based on an action that has happened. The event "onActionPerformed" allows users to execute a command when interacting with a component, such as a slider or one-shot button. There are also touch-specific events that can trigger commands based on specific input types, like when a user removes their hand from the screen.
This can be important when migrating legacy applications, such as those that may have previously relied on a resistive stylus and had commands executed when a stylus was removed from the screen. However, I would recommend not migrating this style of touch interface and moving to the standard “on-click” functionality. Since operators are already familiar with touchscreen interfaces on mobile and tablet devices, there should be minimal friction or relearning needed. EETI’s eGalaxTouch Windows utility has been tested by OnLogic for use with Tacton’s resistive touchscreens for those users that need to emulate legacy applications and inputs.
When the HMI needs inputs from users that would otherwise use a keyboard, they can use an on-screen keyboard (OSK) to create a virtual keyboard to interface with when using the touchscreen. When enabled, the keyboard will show up when clicking into a text or numerical entry box. Both Windows and Linux distros offer a default OSK, but may require some setup depending on the application.
While Vision had an integrated touchscreen keyboard, Perspective requires additional components to accomplish this. For Perspective, we can either use the operating system’s built-in OSK or integrate it as a component directly into Perspective. There are pre-built Perspective components available on the Ignition Exchange for OSK and numpads. When integrating the keyboard directly into the Perspective session, disabling the OS’ built-in OSK is required.
Fig. 1. Ignition Exchange resource for on-screen keyboard as Perspective component
Fig 2. Windows Touch Keyboard has options to customize layout and size.
Somewhat confusingly, Windows offers both a standard OSK and a touch keyboard. Both options pop out as a window when needed, but the touch keyboard (shown above) offers much more flexibility and responsiveness in terms of customizing size and position. It is best to use the touch keyboard option when possible. Additionally, with Windows 11, you can add an icon to the taskbar that allows you to turn the keyboard off and on manually if desired. To use it properly, turn off the standard OSK in the keyboard section of the Accessibility Menu, turn on the touch keyboard (Time & Language > Typing), and add it to the taskbar (Personalization > Taskbar).
You can enable the OSK in the accessibility system menu under the typing section. It will pop up from the bottom of the screen, occupying about one-third of the screen space, and you can manually bring it up by swiping from the bottom of the screen (PCAP screens only). This can present challenges as input boxes can become blocked by the OSK window.
Fig 3. Default GNOME OSK in Ubuntu 24.04 LTS
Customization of OSK functionality can be tricky depending on the particular Linux distribution. Most modern distributions (18.04+) use Wayland as a replacement for the X11 window system protocol, which is how Linux handles the graphics interfaces. This means that older tools that utilize x11 will not work with modern distributions when trying to deploy system-wide. It's important to consider how inputs will be made if the default OSK can't be used.
When a system is panel mounted, be sure to consider how to wake the system from a standby/suspend state. While Windows 11 supports “Touch on Wake” natively, the same option is not present for the default Ubuntu 22.04/24.04 environment or within Windows 10. One obvious solution is to disable sleep/suspend in the power settings of your operating systems; however, the Tacton platform offers some alternative hardware features that can help, regardless of the Windows or Linux environment.
If you have any questions on IP65 Waterproof Panel PC, Outdoor Industrial Computer. We will give the professional answers to your questions.