labview ui tips and tricks

51
1 LabVIEW UI Tips and Tricks

Upload: summer-kerr

Post on 31-Dec-2015

59 views

Category:

Documents


0 download

DESCRIPTION

LabVIEW UI Tips and Tricks. Agenda. Definitions, rules and advice (not LabVIEW specific, but important) Some cool UI techniques for LabVIEW (and why you would consider using them in your application) Where to go to download some reusable components (because everybody loves free stuff). - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: LabVIEW  UI Tips and Tricks

1

LabVIEW UI Tips and Tricks

Page 2: LabVIEW  UI Tips and Tricks

2

Agenda

1. Definitions, rules and advice(not LabVIEW specific, but important)

2. Some cool UI techniques for LabVIEW(and why you would consider using them in your application)

3. Where to go to download some reusable components

(because everybody loves free stuff)

Page 3: LabVIEW  UI Tips and Tricks

3

What is a UI?

• Literally: User Interface

• How user interacts with program• First thing user notices• Make the user’s job easier• Don’t be frustrating

Page 4: LabVIEW  UI Tips and Tricks

4

UI and Usability

Superfluous eye candy

UI

Usability

BackgroundTask or Process

Visual elements that help the user perform a task in an efficient

manner

Page 5: LabVIEW  UI Tips and Tricks

5

Some General Rules

1. Don’t be innovative

2. Less is more

3. Think About Your User

Page 6: LabVIEW  UI Tips and Tricks

6

1. Don’t Be Innovative

Use familiar elements Buttons Icons Terminology Dialogs Menus

Page 7: LabVIEW  UI Tips and Tricks

7

1. Don’t Be Innovative

Still some license for creativity Don’t change the way

similar looking things behave

Polish, don’t reinvent

Page 8: LabVIEW  UI Tips and Tricks

8

2. Less is More

• Too much on screen at once is distracting

• Allow your user to focus on what is important

Page 9: LabVIEW  UI Tips and Tricks

9

3. Think About Your User

• They probably don’t know as much as you Explain what buttons do Keep them informed about what your program is doing

• Know how the user plans on using your application Mouse, Keyboard? Touch Screen Large Buttons Outdoors High Contrast

Page 10: LabVIEW  UI Tips and Tricks

10

Let’s Take a Look at Some UIs

• Windows Desktop App• Small Touch Screen App• Informative Kiosk Display

Page 11: LabVIEW  UI Tips and Tricks

11

Windows Desktop App

Page 12: LabVIEW  UI Tips and Tricks

12

Applying the Rules

Don’t be innovative

• Use System Controls• Add familiar icons to

task buttons• Use X to close

application

Less is more

• Allow user to hide less important displays

• Hide the LV toolbar• Don’t persist one-time

configuration controls for no reason use temporary dialogs

• Customize the run-time menu

Think About Your User

• Create a status bar and use the busy cursor to update user

• Use tooltips to clarify functionality

• Allow the user to cancel long tasks

• Use panes to let user resize your application

Desktop Windows Application

Page 13: LabVIEW  UI Tips and Tricks

13

Use Appropriate Controls

You can change your default type in Tools»Options»Front Panel

Page 14: LabVIEW  UI Tips and Tricks

14

Add Decals to Buttons

Page 15: LabVIEW  UI Tips and Tricks

15

Add Decals to Buttons - Demo

Page 16: LabVIEW  UI Tips and Tricks

16

Tooltips

Page 17: LabVIEW  UI Tips and Tricks

17

Tooltips - Demo

Page 18: LabVIEW  UI Tips and Tricks

18

Recolor Graphs

Page 19: LabVIEW  UI Tips and Tricks

19

Recolor Graphs - Demo

Page 20: LabVIEW  UI Tips and Tricks

20

Hide the LabVIEW Toolbar

Page 21: LabVIEW  UI Tips and Tricks

21

Hide the LabVIEW Toolbar - Demo

Page 22: LabVIEW  UI Tips and Tricks

22

Customizing the Run-Time Menu

Page 23: LabVIEW  UI Tips and Tricks

23

Customizing the Run-Time Menu - Demo

Page 24: LabVIEW  UI Tips and Tricks

24

Spawning Dialogs

Page 25: LabVIEW  UI Tips and Tricks

25

Spawning Dialogs - Demo

Page 26: LabVIEW  UI Tips and Tricks

26

Using Panes Title Area

Status Bar

Menu /Commands

ExpandableContent Area

Page 27: LabVIEW  UI Tips and Tricks

27

Using Panes – Demo

Page 28: LabVIEW  UI Tips and Tricks

28

Hiding Panes

Page 29: LabVIEW  UI Tips and Tricks

29

Status Bar

Page 30: LabVIEW  UI Tips and Tricks

30

Busy Cursors

Page 31: LabVIEW  UI Tips and Tricks

31

Busy Cursors - Demo

Page 32: LabVIEW  UI Tips and Tricks

32

Keeping the User Updated

Page 33: LabVIEW  UI Tips and Tricks

33

Small Touch Screen App

Page 34: LabVIEW  UI Tips and Tricks

34

Applying the Rules

Don’t be innovative

• Use large controls & indicators that resemble their physical equivalents

• Simple is best

Less is more

• Screen real-estate is valuable, use it wisely

• Use trays, tabs or different screens to stretch screen space

Think About Your User

• Glare may be an issue use more contrast

• Touch screens require more spacing

• Users fingers may obscure part of the screen

Small Touch Screen

Page 35: LabVIEW  UI Tips and Tricks

35

Tab Controls

• Tab controls are a familiar way to put more information on a screen than would otherwise fit

• Since the tabs themselves can be hidden and changed programmatically they are also useful for some less obvious UI techniques

Page 36: LabVIEW  UI Tips and Tricks

36

“Hidden” Tab Controls

Main Content Tab Control

Sliding Tab Control

Page 37: LabVIEW  UI Tips and Tricks

37

Sliding a Control – Move.vi

• Moves an object to the Desired Position• Moving half the remaining distance in each loop

iteration gives a natural sliding appearance

Page 38: LabVIEW  UI Tips and Tricks

38

Putting It Together When the Menu Button is clicked slide the invisible tab control into view.

Store the old position of the menu so we can slide it back.

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.

Page 39: LabVIEW  UI Tips and Tricks

39

Informative Kiosk Display

Page 40: LabVIEW  UI Tips and Tricks

40

Applying the Rules

Don’t be innovative

• Take inspiration from TV, websites or similar applications

Less is more

• Show only the important information in an instantly recognizable way

Think About Your User

• Passive audience visual appeal is more important

Informative Console Display

Page 41: LabVIEW  UI Tips and Tricks

41

Panel Background

Page 42: LabVIEW  UI Tips and Tricks

42

Panel Background - Demo

Page 43: LabVIEW  UI Tips and Tricks

43

Create Decorations in PowerPoint

Page 44: LabVIEW  UI Tips and Tricks

44

Create Decorations in PowerPoint - Demo

Page 45: LabVIEW  UI Tips and Tricks

45

Transparent Indicators

Page 46: LabVIEW  UI Tips and Tricks

46

Transparent Indicators - Demo

Page 47: LabVIEW  UI Tips and Tricks

47

Transparent PNGs in a Picture Ring

Page 48: LabVIEW  UI Tips and Tricks

48

Transparent PNGs in a Picture Ring - Demo

Page 49: LabVIEW  UI Tips and Tricks

49

Heavily Customized Controls

Page 50: LabVIEW  UI Tips and Tricks

50

Free Stuff - UI Interest Group

http://decibel.ni.com/content/groups/ui

Page 51: LabVIEW  UI Tips and Tricks

51

Key Take Aways

• The “Rules”1. Don’t be innovative2. Less is more3. Think about your user

• Take advantage of what LabVIEW gives you: Transparency Different Controls/Control Customization Panes/Tabs

• UI Interest Group on the community