user interface secrets of advanced labview developers...

14
1 © 2008 JKI, All Rights Reserved. jkisoft.com User Interface Secrets of Advanced LabVIEW Developers Presented by Michael Aivaliotis and Philippe Guerit of JKI at NIWeek 2008

Upload: lamkhue

Post on 11-Mar-2018

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

1

© 2008 JKI, All Rights Reserved.jkisoft.com

User Interface Secrets of Advanced LabVIEW Developers

Presented by Michael Aivaliotis and Philippe Guerit of JKI

at NIWeek 2008

Page 2: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

2

© 2008 JKI, All Rights Reserved.jkisoft.com

• LabVIEW Champion• Founder of the LAVA

Forums: www.lavag.orgwhich includes the code repository

• Founder of the LabVIEW Wiki: www.labviewwiki.org

• Founder of VI Shots video blog www.vishots.com

• Certified LabVIEW Architect

• Creator: “Pure G” VIPM Installer

• Creator: VIPM Palette preview tool.

• JKI Image and Graphics Expert

• OpenG Developer

Michael Aivaliotis Philippe Guerit

Page 3: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

3

© 2008 JKI, All Rights Reserved.jkisoft.com

“A user interface is well-designed when the program behaves exactly how the user

thought it would.” - Joel Spolsky

Page 4: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

4

© 2008 JKI, All Rights Reserved.jkisoft.com

Overview

• Advanced UI techniques demonstration• Panes• Control customization• Picture control• XControls• Drag and Drop• Tricks and Tips

Page 5: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

5

© 2008 JKI, All Rights Reserved.jkisoft.com

Demonstration ofJKI VI Package Manager

as an example of good UI design

Page 6: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

6

© 2008 JKI, All Rights Reserved.jkisoft.com

The front panel as a canvas

Title: And then...color...color...color... :))Credit: http://www.flickr.com/photos/brartist/313272029/

Page 7: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

7

© 2008 JKI, All Rights Reserved.jkisoft.com

Window sizing - aches and panes

• Front panels can now be sectioned into panes• Panes can have background images• Allows elegant implementation of control resizing• Using the OpenG “fit window to largest

decoration” VI• Examples and demonstration

Page 8: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

8

© 2008 JKI, All Rights Reserved.jkisoft.com

Chicken Chicken Chicken

Title: Chicken Shack ExpressCredit: http://flickr.com/photos/mpwillis/180391333/

Page 9: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

9

© 2008 JKI, All Rights Reserved.jkisoft.com

Customizing Controls

• Customizing controls with external graphicsUsing *.png imagesUsing *.gif animations

• Using system decorations on non system controls

• Examples

Page 10: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

10

© 2008 JKI, All Rights Reserved.jkisoft.com

Picture Control

• You can do anything in a picture control• Requires a lot of programming• Unlimited possibilities• Examples

Page 11: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

11

© 2008 JKI, All Rights Reserved.jkisoft.com

Drag and Drop

• You can now do native drag and drop since LabVIEW 8.0

• You can use the file path control to trap OS file drops

• Example (LV8.2) link

Page 12: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

12

© 2008 JKI, All Rights Reserved.jkisoft.com

XControls

• LabVIEW controls you create with custom behavior (methods and properties)

• Allows reuse and encapsulation of complex UI code across many projects

• http://forums.jkisoft.com• Example

Page 13: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

13

© 2008 JKI, All Rights Reserved.jkisoft.com

Conclusions

• Creating a rich and intuitive user experience requires a lot of work.

• It’s worth it.

Page 14: User Interface Secrets of Advanced LabVIEW Developers …jkisoft.com/niweek/2008/user-interface-secrets-of-advanced-labview... · User Interface Secrets of Advanced LabVIEW Developers

14

© 2008 JKI, All Rights Reserved.jkisoft.com

More Information

• http://forums.jkisoft.com• “How'd they do that?” Forum

• VIPM info: http://jkisoft.com/vipm