2-2 HMI For LabVIEW Programming
2-2 HMI For LabVIEW Programming
Agenda
1. Definitions, rules, and advice 2. Some cool UI techniques for LabVIEW
What Is a UI?
Literally: User Interface () How user interacts with the program First thing the user notices Make the users job easier Not be frustrating
UI and Usability
UI
Superfluous eye candy Visual elements that help the user perform a task in an efficient manner Background task or process
Usability
1. Do Not Be Innovative
Use familiar elements
Buttons Icons Terminology Dialogs Menus
1. Do Not Be Innovative
Still some license for creativity
Do not change the way similar looking things behave Polish, do not reinvent
2. Less Is More
Too much on screen at once is distracting Allow your user to focus on what is important
Tooltips
Recolor Graphs
Spawning Dialogs
Using Panes
Title Area
Menu/Commands
Status Bar
Hiding Panes
Status Bar
Busy Cursors
Tab Controls
Tab controls are a familiar way to put more information on a screen Because the tabs can be hidden and changed programmatically, they are also useful for some less obvious UI techniques
Moves an object to the Desired Position Moving half the remaining distance in each loop iteration gives a natural sliding appearance
Putting It Together
When the Menu Button is clicked, slide the invisible tab control into view
When a new view is selected, change the Main Content Tab Control to the selected page Again, store the old position of the menu so we can slide it back
Do not be innovative
Take inspiration from TV, Web sites or similar applications
Less is more
Show only the important information in an instantly recognizable way
Panel Background
Transparent Indicators
http://decibel.ni.com/content/groups/ui
Key Takeaways
The Rules
1. Do not be innovative 2. Less is more 3. Think about your user