Go to Post Magic Smoke. One whiff and you never forget. - JohnBoucher [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 12-01-2011, 13:45
jamescardona jamescardona is offline
Registered User
FRC #0316
 
Join Date: Jan 2011
Location: united states
Posts: 3
jamescardona is an unknown quantity at this point
custom dashboard and priority user data

I am building a custom dashboard in labview and got everything working. Unfortunately the DOs (GPIO State) are wired off the low priority user data line, so then I do not see my sensor updates on the classmate for about 2 seconds. I would like to switch a few sensors to the (currently disabled) high priority user data line to have prompt and usable inidcation. Can anyone tell me how to do that?
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2011, 00:48
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: custom dashboard and priority user data

You should remove any lines that you don't care about. Then the data will be more likely to fit even if it is low priority.

If you want to move it to high priority, just create another typedef to represent the high priority data that has which ever variables you want in it, then pack it the same way on the robot and unpack it the same way on the dashboard.

-Joe
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2011, 08:33
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: custom dashboard and priority user data

Is it the data priority that's making updates so slow? Or is it the fact that the DIO reading code on the robot itself is only performed every couple of seconds? Look at how and when the default Dashboard data is put together.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2011, 11:58
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: custom dashboard and priority user data

The priority of the data only comes into play when the ~1kB status packet fills up. At that point low priority data loses out to high priority data for a slot in the packet. Honestly, I'd rather those terms not be used, or even better, the robot should another port to send back all the dashboard data you like.

Anyway, the speed is limited to 50Hz because it is being attached to the next status packet. If your data is being sent more slowly than that, it is because the robot isn't attaching the data very quickly.

You may want to modify the build dashboard code in the robot template to do what you like.

Greg McKaskle
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


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

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