Go to Post The problem with anecdotal evidence is that you never seem to get the whole anecdote. - Lea DeFoote [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 05-02-2009, 18:00
Xenosthebest Xenosthebest is offline
Registered User
FRC #0701
 
Join Date: Feb 2007
Location: Travis AFB
Posts: 14
Xenosthebest is an unknown quantity at this point
Calling for dashboard...

So I want to take information from several separate VIs in Labview, but all efforts to do so have been for no avail. I can call from one VI and call more than one piece of information from that single VI, but from more than one and to put it all onto the dashboard at once has been a roadblock. I checked every tutorial online that I cold dig up, but none have given me an answer. Any ideas labview programmers?
  #2   Spotlight this post!  
Unread 06-02-2009, 14:22
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,756
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: Calling for dashboard...

You have a couple options. Possibly the simplest is to to put the info into the Status data which is transmitted at 50 Hz. If possible, drag the wires to a common location in your loop, format into an array of bytes, then call StatusDataCache with Set.

If the data is more scattered around, you can publish your loop data into one or more globals. Ideally, a unique global per loop. Then in one location such as in the Robot Main, you read the globals, format, and write to the status cache. Note that this is not very synchronized, just as the loop execution is not. For continuous processes such as driving the robot, this is probably good enough and it is easy. If you want to get more synchronized, you can look to use a functional global, queues, etc. For now, I'd keep it simple.

Another option is to skip the status data and go straight to the template for updating the actual DS data. The subVI is called Build Dashboard Data. In the subVI, it uses a typedef called Dashboard Datatype.ctl. You can add fields to this control, then decide how often you from your I/O or globals and publish it to the Dashboard. You can then modify the dashboard project to unbundle your new fields and display then however you like. An example of this would be to get rid of the low level AI values and publish something useful such as gyro heading or acceleration or position.

Greg McKaskle
  #3   Spotlight this post!  
Unread 06-02-2009, 14:23
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Calling for dashboard...

Out of curiousity, is the data stream for the dashboard documented anywhere?
  #4   Spotlight this post!  
Unread 06-02-2009, 14:44
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,756
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: Calling for dashboard...

In the sense that it is open source, yes. I've also published images of the data members. If you don't find that image, load the dashboard show the context help window, and hover over the wire going to or from the dashboard wire. It is a large structure of ints and floats.

Greg McKaskle
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
Calling for all IBEW members Al Skierkiewicz General Forum 5 29-09-2008 19:54
Calling for posts of divisonal stats... chrisrobin Championship Event 0 18-04-2007 18:55
Calling for everbody to sign a petition to FIRST archiver 2001 25 24-06-2002 03:53
Custom Dashboard code for LabVIEW ready for download. archiver 2001 3 24-06-2002 00:49
Dashboard for Pocket PC James Crivellone Rules/Strategy 8 10-01-2002 12:18


All times are GMT -5. The time now is 02:34.

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