Go to Post As an adult who has spent years working with youth in Boy Scouts and FIRST, and on behalf of all other adults at the event: deodorant. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2010, 00:29
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Dashboard Datatype?

Hi everyone,

I searched, so please don't flame

Anyway, so I've decided to finally make a custom dashboard. I've spent the night figuring out how these clusters are packed (we're using Java this year). I understand the structure for the sample code, and I can find the cluster in the block diagram from the sample LabVIEW dashboard program (on the left, Low Level robot I/O values). I can see how those structures match up to the provided dashboard Java code cluster structures.

Wonderful.

So, how do I create a custom structure in LabVIEW? I'm not even entirely sure what's going on here (I've never used LabVIEW for anything more than real-time signal capture not related to FIRST.) This "box" (I'll call it that until someone can describe to me in more detail what it does) has all of these clusters inside. Where is this "box" getting its data from? How do I make a "box" with my own structure? Is there any way I can not use a mouse to do this? (that one was rhetorical).

Anyway, if anyone can help me understand what's going on here, I'd greatly appreciate it.

Thanks!
Jacob
  #2   Spotlight this post!  
Unread 15-02-2010, 00:39
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 Datatype?

If I understand what you're referring to, that "box" is a cluster constant. You can place one on the block diagram, and then place other constants (string, numeric, boolean, etc.) inside it in the desired order to create a cluster of your own design.
  #3   Spotlight this post!  
Unread 15-02-2010, 00:41
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Dashboard Datatype?

Quote:
Originally Posted by Alan Anderson View Post
If I understand what you're referring to, that "box" is a cluster constant. You can place one on the block diagram, and then place other constants (string, numeric, boolean, etc.) inside it in the desired order to create a cluster of your own design.
Thanks for the fast response, Alan.

So I can simply place my own in place of the one thats there, and it will work? How does LabVIEW know where to get the data to fill those constants? Do I need to call the cluster constant something specific? Where can I find these constant pieces?

EDIT: OH!!! I think I get it. That block on the side is the 'Type' input to the String deflattener. HAH! *excited*

Thanks again,
Jacob

Last edited by whytheheckme : 15-02-2010 at 00:49.
  #4   Spotlight this post!  
Unread 15-02-2010, 00:54
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Dashboard Datatype?

One more question, the types of boxes that the default dashboard program uses (Slot 1, Slot 4, Slot 8).. How can I create those? I can only seem to create simple LEDs etc, without those fancy segmented boxes?
  #5   Spotlight this post!  
Unread 15-02-2010, 01:05
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 Datatype?

I think what you're calling "fancy segmented controls" are just colored rounded box Decorations, Grouped with regular controls on top of them. While you're editing the default dashboard front panel, select one of them and use the rightmost icon on the tool bar to Ungroup them. There's a Tools Palette under the View menu that you can use to set decorations' colors.
  #6   Spotlight this post!  
Unread 15-02-2010, 01:51
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Dashboard Datatype?

By the way, creating a custom control typedef may make things slightly easier when you update the custom datatype on the dashboard.
While you won't be able to use it on your Robot project (Java vs LabVIEW), you will be able to use it as a block diagram constant and the front panel indicator. If it's a strict typedef, you will be able to edit the user data datatype AND how it is displayed by just modifying this file.
(you will still have to open it up and build it as an exe for seamless integration with the driver station)

Here's an example typedef:

(apologies about the page stretching)
__________________
-- Marshal Horn
Closed Thread


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
Dashboard Dr Nick Programming 3 03-02-2008 11:33
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
2004 Dashboard Protocal vs 2005 Dashboard Protocal Kyle T Programming 4 14-03-2005 22:19
dashboard archiver 2000 1 23-06-2002 23:06
Dashboard in VB archiver 2000 2 23-06-2002 22:49


All times are GMT -5. The time now is 21:28.

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