Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

download Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

of 39

Transcript of Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    1/39

    1

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    2/39

    Developing a Powerful HMIApplication Using NI Hardware and

    2

    Andrew Mierau

    Project Engineer

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    3/39

    Definition of: HMI(Human Machine Interface) The user interface in a

    manufacturing or process control system. Itprovides a graphics-based visualization of an industrialcontrol and monitoring system. An HMI typically residesin an office-based Windows com uterthat

    3

    communicates with a specialized computer in the plantsuch as a programmable automation controller (PAC),programmable logic controller (PLC) or distributedcontrol system (DCS).

    PC Magazinehttp://www.pcmag.com/encyclopedia_term/0,2542,t%3DHMI&i%3D44300,00.asp

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    4/39

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    5/39

    Why Would I Choose Windows?

    Graphical User Interface Extensive driver and application support

    Complete tool chain Well documented APIs

    5

    Extensive hardware support

    Fast time to market

    Standard conformity

    Extensibility (no-closed box)

    Built-in manageability Localized language support

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    6/39

    Why Wouldnt I Choose Windows?

    Large footprint Only x86 Support

    6

    Perceived quality issues

    Not reliable

    Not resilient

    Not stable

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    7/39

    7

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    8/39

    What can developers do to create a reliable,custom HMI solution based on Windows?

    8

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    9/39

    Step #1

    Pick the correct version of Windows for your use-case

    9

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    10/39

    Windows Embedded Overview

    10

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    11/39

    National Instruments Windows Offerings

    Windows Embedded Enterprise x86-based development systems

    PXI(e) Controllers

    Rack Mount Servers

    11

    n ows an n ows Windows Embedded Standard x86-based deployment systems

    cRIO-908x

    TPC-22xx Windows Embedded Standard 7 (WES7)

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    12/39

    Windows Embedded Standard 7 (WES7)

    Modularized version of Windows 7 Ultimate Binary Compatibility with Windows 7 Ultimate

    12

    Reduced operating system size

    Embedded Enabling Features

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    13/39

    Modularized

    WES7 1 Embedded Core Package

    150 System Packages

    13

    37 Language Packages

    Windows XP Embedded/WES2009 10,000 Components

    1,000 OS Components 9,000 Driver Components

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    14/39

    Compatibility

    Windows API Support Any application that runs on Windows 7 Client can also

    run on WES7*

    14

    n ows r ver uppor Existing Windows 7 Client drivers will work on WES7*

    *Provided the correct packages are included in the image

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    15/39

    Footprint

    Minimum Configuration 550MB

    15

    Typical Configuration

    ~1.4GB

    Nearly Identical to Windows 7 experience Default Windows 7 OEM install is 16GB!!

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    16/39

    Recommendation #1

    For Windows-based HMI systems, NationalInstruments recommends using Windows

    Embedded Standard 7

    16

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    17/39

    Step #2

    Utilize features available in the OS

    17

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    18/39

    Embedded Enabling Features (EEF)

    Specifically targeted to embedded customers Unique to Windows Embedded Standard

    18

    Target specific use-cases

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    19/39

    Enhanced Write Filter (EWF)

    Benefits Protects a volume from write access

    19

    Volume writes are not persistent across reboots

    Extends life of flash media

    Protects against malicious or unintended changes tothe system

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    20/39

    EWF in Detail

    Upper filter driver in

    the volume stack thatis located between the

    file system and the

    20

    interface with the

    physical disk

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    21/39

    EWF Commands

    Enable* Disable*

    Commit*

    21

    Commit and Disable* Commit and Disable Live

    *Requires reboot

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    22/39

    Enhanced Write Filter (EWF)

    Limitations

    Not ideal for data logging Persistent data should be logged to unprotected partitions,

    removable devices or network locations

    22

    emory sage Memory usage should be monitored

    Virtual Memory (Page File) is not recommended

    Normally requires reboots Normally set up during development/maintenance

    Requires Administrative privileges

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    23/39

    Hibernate Once, Resume Many (HORM)

    Benefits Always boot to the same hibernation image

    23

    ,

    Ideal for Kiosk-type applications

    Once active, hibernate normally to create a resume

    point

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    24/39

    Hibernate Once, Resume Many (HORM)

    Limitations Requires EWF on all mounted, fixed disks

    24

    Persistent data should be logged to removable devices ornetwork locations

    HORM state lost when committing EWF

    Inherits all limitations of EWF

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    25/39

    File Based Write Filter (FBWF)

    Benefits

    Protects the disk against write access at afile/directory level as opposed to the volume level in

    EWF

    25

    Selective write through Exclusion List for files/directories

    Selective commit/restore

    Limitations

    Does not support HORM

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    26/39

    FBWF Commands

    Enable* Disable*

    Add/Remove Volume*

    26

    Add/Remove Exclusion* Commit/Restore

    *Requires reboot

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    27/39

    Controlling EEF

    LabVIEW Utility LabVIEW API

    27

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    28/39

    EWF and HORM Demo

    28

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    29/39

    Recommendation #2

    Utilize Embedded Enabling Features to increasereliability and stability when they fit your end

    use-case

    29

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    30/39

    Step #3

    Customize the OS to meet project requirements

    30

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    31/39

    Automatic Restart on System FailureControl Panel -> System ->

    Advanced -> Startup and

    Recovery

    31

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    32/39

    User Interface

    Background Change Logon Background

    32

    backgroundDefault.jpg

    Must be less than 256KB in size

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    33/39

    User Interface

    Auto Logon HKLM\Microsoft\Windows

    NT\CurrentVersion\Winlogon\

    33

    AutoAdminLogon DefaultUsername

    DefaultPassword

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    34/39

    User Interface

    Cursor Make cursor transparent

    34

    Auto-hide or lock

    Startup

    Put a shortcut to your application in Startup

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    35/39

    Shell Replacement

    Replace the Explorer, Windows shell

    Per System

    HKLM\Microsoft\Windows

    35

    NT\CurrentVersion\Winlogon\Shell Per User

    HKCU\Software\Microsoft\Windows

    NT\CurrentVersion\Winlogon\Shell

    Always have a way to execute Explorer.exe

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    36/39

    Customization Demo

    36

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    37/39

    Recommendation #3

    Customize your solution for your users specificneeds.

    37

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    38/39

    Conclusions

    WES7 is ideal for HMI applications Utilize EEF to make your system more reliable

    38

    Customize your solution for your users specific

    needs

  • 8/12/2019 Developing a Powerful HMI Application Using NI Hardware and Windows Embedded Software

    39/39

    39