Go to Post So is it important to try? Without a doubt. Does it become frustrating to not win? Most certainly. Should you stop trying? Never! - Al Skierkiewicz [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 11-04-2012, 20:26
duffany1 duffany1 is offline
Registered User
AKA: Brandon
FRC #0195 (The Cyberknights)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2006
Location: Southington, CT
Posts: 17
duffany1 is an unknown quantity at this point
Sending Data from Custom Dashboard

I'm sure this question has been asked about a million times but ...

Our team programmed our own custom dashboard using LabVIEW, basically it just has two camera displays for the two Axis cameras on our robot.

However, I want to add a bunch of boolean switches and some numeric inputs to our dashboard so that we can select which autonomous program we want to run, set a delay for the robot's autonomous mode, etc. This means that I will have to send data to the cRIO from the dashboard.

I know it's probably possible to do this with a UDP connection. However, I'm wondering if there's an easier way to do it, because I recall seeing some boolean switches on the default dashboard that is provided every year, and I'm wondering if I can do it in a similar manner. I also saw that there was an FRC dashboard tutorial but that seemed to pertain only to getting data from the robot, as opposed to sending data to the robot, which is what I hope to accomplish.

In any case, how do I go about doing this?

In case anyone is wondering, we always went about accomplishing this sort of thing by means of a shoddy switchbox on our robot, and if we wanted a delay in the autonomous program --- forget it, we'd have to redeploy the code in the heat of competition.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-04-2012, 21:06
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Sending Data from Custom Dashboard

The easiest way, by far, is to use the existing capabilities built into the Driver Station app.
On the I/O tab, without a Cypress connected, all the switches are usable and can even be re-named.
They all are already available in your robot's code.

Adding a simple UDP send/receive would be one typical path to get data from the Dashboard to the robot.
Another would be to investigate the LabVIEW network tables, a late addition to the FRC LabVIEW source forge project.
Attached Thumbnails
Click image for larger version

Name:	DS-IO.jpg
Views:	88
Size:	120.0 KB
ID:	12588  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-04-2012 at 21:40.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-04-2012, 13:43
duffany1 duffany1 is offline
Registered User
AKA: Brandon
FRC #0195 (The Cyberknights)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2006
Location: Southington, CT
Posts: 17
duffany1 is an unknown quantity at this point
Re: Sending Data from Custom Dashboard

Thanks for the help! I will probably just wind up using the DS inputs. I'll check out those network tables in my spare time though, it definitely seems interesting.
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 10:53.

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