Go to Post C'mon you guys you're all inventors. You guys should be making a portable cryogenic sleep chambers for those long bus trips! You got two weeks before you have to go. Get cracking! - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2010, 22:24
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Dashboard Front Panel trouble

I am working on the dashboard for our team and I have hit a slight graphical roadblock. You know those arrows pointing left and right above the camera feed? I want to make an up and down version for our lifting mechanism. However, I can't figure out how to make a flat triangular boolean control. Does anybody know how?
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2010, 00:09
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Dashboard Front Panel trouble

I am clueless when it comes to coding the dashboard, but for the front panel, just use a regular boolean switch and label it up and down. place it between the left and right arrows, and it wont be confusing at all(i hope). That should do what you are trying to do without any coding problems.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2010, 00:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Dashboard Front Panel trouble

I managed to do it, but I don't think I can explain it well. Use the LabVIEW help index to find "customizing, parts of indicators (how-to)". It steps you through a lot of it. The way I did it was to place a boolean indicator LED and a decoration of the appropriate shape (e.g. an up-pointing triangle), copy the decoration, and "import image" into the LED. The necessary steps include right-clicking the LED and choosing Advanced->Customize from the popup menu, and clicking the "Change to Customize Mode" wrench icon. I think I ended up importing the image into both the on and off states of the LED, and I had to change the color using the Properties menu.

I'm sorry if this is too vague, but I'm definitely not thinking clearly enough to give a step-by-step recipe this late at night.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2010, 08:11
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Dashboard Front Panel trouble

There is another sneaky trick you can use to create your own Boolean glyphs. You can draw them in the icon editor (double-click on the icon in the upper right corner of a VI to edit it). I typically use a new Untitled VI to draw my glyphs. Once you have the glyph you want, type Ctrl-c (in the editor) to copy it to the clipboard. You now have a glyph ready to paste when you edit a Boolean indicator.

On a separate VI, drop a Flat Square Button: To do this, right-click on the front panel and go to Classic>>Classic Boolean>>Flat Square Button. Highlight the button and then in the menus click Edit>>Customize Control... A new window will open where you can edit your control. Right-click on the control and choose Import Picture from Clipboard>>True for your T glyph and Import Picture from Clipboard>>False for your F glyph. When you are done, choose File>>Save to save your custom control.

One limitation to this approach is you are limited by the size of the VI icon (32x32), but I find this to be good for most of my custom Booleans.

Attached is a zip that contains an up arrow control and a down arrow control I created using this method.
Attached Files
File Type: zip controls.zip (4.4 KB, 8 views)
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2010, 08:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Dashboard Front Panel trouble

Alan is correct. The left right were made by starting with a simple button such as the circle, then importing graphics. If you are not going to color them, PNGs or vector graphics work well. If you aren't up to that and are using BMPs, you'll want to match the BG color. Or, you can use one of the built-in vector graphics in the Decorations palette.

The steps for customizing a button are to go into the control editor by right-clicking>>Advanced>>Customize. In the new window, you can right click on the button and the Import Picture from Clipboard pull-right will let you replace the True and False images. To get an image on the clipboard, you can go to a drawing package select and Copy -- easiest, but you typically end up with a rectangular BMP. You can use Edit>>Import Picture to Clipboard -- which will allow you to use saved images such as PNGs and GIFs. And finally, you can borrow graphics from pretty much anything you see in LV. In this case, you can drop a decoration such as the flat up triangle, select, Cut, and it is on the clipboard. If you want to borrow a control graphic that isn't in decorations, but already part of a control, in the control editor, you click on the wrench/tweezer button on the toolbar, and when in tweezer mode, you can right-click on control elements and Copy to Clipboard.

You want to Import the same image to both True and False and color them differently, it sound like. Of you can color them in an external editor and import different images for True and False. The decal, by the way, is displayed for both True and False images. When you close the window, it will ask if you want to save this as a .ctl. This is useful if you'll use this customized part in the future without having to copy/paste from this usage. You can easily put .ctls into the palette for example. And finally, you do want to replace the original control with the modified one.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2010, 20:58
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Dashboard Front Panel trouble

Thanks, I got it working!
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Front panel indicator Yppiz NI LabVIEW 5 15-02-2010 18:44
Classmate PC - Front Panel jmanela NI LabVIEW 28 23-08-2009 20:36
pic: Team 810's Robot - Front Panel LetsGo810 Extra Discussion 2 30-01-2007 10:31
Inventor software trouble/ FIRST Base trouble nasa-senpai General Forum 2 24-01-2007 09:15
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04


All times are GMT -5. The time now is 22:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi