《LabVIEW编程技术》由会员分享,可在线阅读,更多相关《LabVIEW编程技术(22页珍藏版)》请在金锄头文库上搜索。
1、LabVIEW Programming Techniques The Good, the Bad, and the UglyGreg McKaskle Senior Group Manager Fri Aug 18 10:15-11:30 a.m., 1:45-3:00 p.m. Ash (10A)Good, Bad, or Ugly?Good, Bad, or Ugly?Who are We to Judge?Industrial design degree? Graphic design degree?We are critics! We have experience with the
2、real world We rely on familiar interfaces to guide us Our goal is to recognize our limits, to mimic and copy the AgendaExamples (VIs, stereo, car, newspaper) Association Colors Tab control guidelines UI features in LabVIEW Example 1 Whats Wrong With It?First, Lets Remove the CRemove Text LPack into
3、a Tighter GAnother OAssociationMost important technique Idea is to separate and group logically Use: Color Borders Spacing CAssociation ColorNot the best technique for associating It is the most overused technique Strong, brute force approach Best used when spatial arrangement cannot be controlled C
4、ontrast is more important than color The red fox jumped over the lazy Association BordersNotice the one at the top of the slide? Used extensively in news media Can be a line, box, or transition in texture Match the border weight to other Association SpacingMost effective technique Books, presentatio
5、ns, and computer keyboards rely on white space to associate Spacing defines a grid and separates items into Association CombinationsCombination Look at professional interfaces and learn individual techniques first Then learn how to combine them Real world examples newspaper, stereo, keyboard, copyin
6、g machine, Colors How Much is Enough?Only two types of color Neutral colors (for coloring large objects) Highlight colors (for coloring small objects)Neutral colorsHighlight colorsSystem color pickerColor historyTransparent Color Blind?Fonts A Few GuidelinesUse very few fonts on a panel Two or three
7、 fonts is probably the limit One is often the right number Vary the size, weight or boldness instead Use serif fonts for printed blocks of text Use non-serif or sans-serif fonts for Tab Control GuidelinesLabVIEW 6i includes a built-in tab control It allows more information on a panel It simplifies t
8、he programming and the UI It is not Tab Control No-NosUse descriptive names Avoid many rows of tabs Avoid scrollbars if possible Avoid having tabs perform Control Features in LabVIEW 6i3D controls and line decorations Multiple scales on graphs and charts Multicolumn listbox Color ramp for rotary controls Digital graph, logic analyzer Editor Features in LabVIEW 6iControl references A SubVI can make attribute changes Use it to share code and clean up diagrams Tip Strips on controls Group and Lock New control and panel attributes