Log In   |  Register Free Newsletter Subscription
Skip navigation
Zibb
Subscribe to Control Engineering
FirstLight
RSS
Reprints/License
Print
Email
Average Rating:
  • (3)
    Rate this:
  • Smart screens for industrial applications

    Developers of smart screen HMIs can achieve industrial-grade reliability and real-time performance by using both Flash and C/C++ components. Design of a building automation system provides an example.

    Andy Gryc, QNX Software Systems -- Control Engineering, 10/1/2009

     

    To evaluate the suitability of a Adobe Flash Lite based smart screen, QNX developers crated a buliding automation systerm and HMI.To evaluate the suitability of a Adobe Flash Lite based smart screen, QNX developers crated a buliding automation systerm and HMI.

    A smart screen can be defined as a human-machine interface (HMI) that uses interactive graphics displays on a touchscreen to offer users control of an underlying embedded system. Smart screens come in many shapes and sizes, and can be used for applications ranging from ticket kiosks to factory control systems.

    Smart screens are becoming the preferred HMI for a variety of industrial control applications. These smart screens are essentially the same as those for consumer applications. The key differences lie in the underlying applications and the HMI design.

    Where consumer applications may emphasize the “Wow!” factor—with morphing widgets and other non-essential but eye-catching features—industrial smart screens must provide clear and readily understandable interfaces. In addition, industrial HMIs must be designed to be consistent over many years and easily updatable. They must maintain a consistent look, feel, and functionality even as the systems beneath them change.

    This requirement for consistency and ease of use does not imply that creating smart screens for industrial applications is less difficult than for consumer electronics. In addition to providing on-screen information and controls, smart screens may need to provide interactive access to layered diagrams, blueprints and maps, embedded videos, and other media. Above all, they must offer industrial-grade reliability.

    Building smart screen HMIs with Adobe Flash Lite allows developers to take advantage of the Flash toolbox, which includes all the elements needed to build a clear, effective smart screen, and which supports the most stringent design requirements, including layout, layering, and multimedia support. Moreover, top-notch Flash designers and developers are relatively easy to find, thanks to the widespread acceptance of Flash as an Internet technology.

    Unlike desktop Flash players, Adobe Flash Lite is designed specifically for resource-constrained embedded products. To evaluate the suitability of a Flash Lite smart screen implemented over an industrial application running in an embedded environment, we designed and implemented a building automation system and HMI. The HMI allows a user to operate a multi-zone control system, monitor system-wide alarms, and perform video surveillance. The system operator can touch the smart screen to zoom in on specific wings or rooms, adjust temperature or fan speeds, and control a variety of other functions.

     

    This smart screen presents information gathered through the HMI connection to the underlying system controls.This smart screen presents information gathered through the HMI connection to the underlying system controls.

    The system sensors and controls are simulated, but they could be replaced by actual hardware in a real building. To more closely simulate a live environment, we designed the system to be fault tolerant. For example, if an error or a user intervention takes a building zone offline, the application detects the problem and reports it through the HMI.

    A Freescale MPC8536E PowerQUICC III serves as the primary CPU, although the software stack can run on a number of different chips and architectures. The QNX Neutrino RTOS serves as the operating system, and the MPC8536E board support package provides device drivers that interface with the I2C and SPI hardware.

    Three processes control each zone: one process for heating, ventilation, and air conditioning (HVAC); one for fan motor control; and one for the temperature and humidity sensor. At the top of the stack, an application using Adobe Flash Lite 3 provides the smart screen HMI.

    Design challenges

    A building automation system must support dynamic deployment. Physical factors often constrain module placement, and changes to building infrastructure may dictate system rearrangement.

    To address the challenge, we separated the HVAC control tasks for each zone into independent processes. This separation allows the system to be distributed on multiple nodes across an Ethernet network using Transparent Distributed Processing (TDP). As a result, building engineers can arbitrarily rearrange the system’s zone deployment without having to reconfigure the master HMI system. Separating each zone’s tasks into different processes also provides greater fault resilience—the system can detect the problem and restart without affecting other functions.

     

    The software architecture of the building automation system shows how three processes control each zone: one for heating, ventilation, and air conditioning (HVAC), one for fan motor control, and one for the temperature and humidity sensor.The software architecture of the building automation system shows how three processes control each zone: one for heating, ventilation, and air conditioning (HVAC), one for fan motor control, and one for the temperature and humidity sensor.

    The smart screen HMI presented another challenge. We wanted to use Adobe Flash because it simplifies the work of creating an attractive and effective user interface. However, we knew that compiled Flash binaries execute inside the Flash virtual machine, isolating the Flash HMI from the rest of the system. Flash code operating in a browser cannot manipulate the underlying PC environment, and, identically, an embedded Flash HMI does not normally have access to the embedded system’s underlying hardware resources.

    The solution to this problem turned out to be straighforward—use an Action Script Extension (ASE) that allows Flash code to interface directly with native C/C++ code. We used this capability to interface the HMI to the HVAC, motor, and sensor processes. This strategy allows these processes to operate like traditional embedded software, which would interface to the sensors and controllers either by directly accessing the A/D hardware and GPIO pins, or by using I2C or SPI bus drivers to communicate with the devices.

    As part of this project, we attempted to address key concerns about the suitability of Flash Lite for embedded industrial applications. These include:

    • Dynamic memory consumption. The amount of memory available to the Flash virtual machine’s heap can be completely constrained so that it will not exhaust system memory.

    • Real-time performance. Flash does not offer real-time performance. Developers can mitigate this by moving any real-time requirements into native C/C++ code and then communicating between that code and the Flash HMI.

    • The Flash single-thread model. The HMI can stall if a portion of it is waiting on an input that fails to arrive immediately. Developers can solve the problem by moving code that can block out into a C/C++ module.

    Bottom line: Developers can satisfy the twofold requirements of industrial-grade reliability and real-time performance by implementing an appropriate division of the HMI between Flash and C/C++ components.


    Author Information
    Andy Gryc writes for QNX Software Systems, maker of middleware, development tools, realtime operating system software and services for embedded design.

    For more information...

    www.qnx.com

    Average Rating:
  • (3)
    Rate this:
  • RSS
    Reprints/License
    Print
    Email
    Talkback
    Related Content
    Reed Business Information Resource Center

    Featured Company


    Related Resources

    Advertisement

    Related Microsite Content

    Related Links

    More Content
    • Blogs
    • Discussions
    • Webcasts
    • Podcasts
    • Video

    Ask Control Engineering

    Ask Control Engineering

    Ask Control Engineering, Senior Editors from Control Engineering
    March 6, 2010
    Is each day is really shorter?
    Dear Control Engineering: I heard something about the recent earthquake in Chile...
    More

    Ask Control Engineering

    Ask Control Engineering

    Ask Control Engineering, Senior Editors from Control Engineering
    February 27, 2010
    Working with resistive sensor elements
    Dear Control Engineering: I’ve read that RTDs (resistance temperature...
    More

    View All Blogs RSS
    • Mustang Automation and Control: Employee retention, project management


      Don Colchin, Mustang Automation and Control president, explains project management and employee retention. Mark T. Hoske interviews this winner of the Control Engineering System Integrator of the Year 2010, over $50 million annual revenue category. Hear It Now
    • Instrumentation tutorial: Understanding multivariable sensors


      Smart process sensors and instrumentation can often provide more information than just one process variable, if you know how to access and use the extra data. Hear It Now
    • Recovery from a cyber security incident


      Cyber security experts Kevin Staggs, Shawn Gold, and Andrew Wray from Honeywell Process Solutions discuss what should happen if you have suffered a cyber security incident, or think you may have. Topics include detecting incidents, forensic techniques, appropriate responses, and more. Hear It Now
    • Fieldbus in upstream oil and gas applications


      Foundation Fieldbus is enjoying wider use in upstream oil & gas applications in conjunction with control systems like Yokogawa's Stardom. Hear It Now
    • Enterprise PLM


      Is your company ready for Enterprise PLM?

      Enterprise product life-cycle management (PLM) encompasses nine business processes—among them the much-embraced Design for Supply and Cost. This podcast sets up the relationship between PLM software and Enterprise PLM processes in basic terms, including the bonuses found in time-to-market and product quality.

      Sarvesh Jagannivas
      Speaker: Sarvesh Jagannivas
      Vice President of Marketing for Oracle’s Agile PLM software group
      Sidney Hill
      Moderator: Sidney Hill
      Executive Editor of Manufacturing Business Technology
      Hear It Now
      View All Videos»

    CtlEng_EngEdCenter_160x160
    Advertisement
    ABB_PAWorld_160x160
    NEWSLETTERS
    Weekly News
    Process Instrumentation & Sensors Monthly
    System Integration Monthly
    Process & Advanced Control Monthly
    Machine Control Monthly
    Information Control Monthly
    Product Review
    Sustainable Engineering
    Simplified Safety
    Fieldbus Facts
    PROFInews North American Edition



    Please read our Privacy Policy

    About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   FREE Subscription   |   Useful Sites   |   RSS
    © 2010 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
    Use of this Web site is subject to its Terms of Use | Privacy Policy