Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Controls on dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=103639)

siggy2xc 22-02-2012 19:46

Controls on dashboard
 
I can create indicators on the dashboard but I would also like to be able to put some controls on as well. How would I go about doing this?

zaphodp.jensen 23-02-2012 09:06

Re: Controls on dashboard
 
Use a UDP port to communicate data back to the robot. Currently, we have offboarded our vision processing to the driver's station, and have a couple of customizable controls on the dashboard.

The hardest thing is trying to encode your data into strings, because UDP Ports only accept data as a string.

Give me two hours and I will post some example code.

demons858 23-02-2012 13:31

Re: Controls on dashboard
 
so what happened to the two hours I think this is what im looking for too

zaphodp.jensen 23-02-2012 15:09

Re: Controls on dashboard
 
School came up. I am working on the example code right now.

demons858 23-02-2012 15:22

Re: Controls on dashboard
 
Thnats understandible school comes first

zaphodp.jensen 23-02-2012 15:38

Re: Controls on dashboard
 
2 Attachment(s)
Ok, here we go. This is a short example that encodes a Decimal Numeric, a Boolean, and a string and sends it over UDP from the dashboard to the Robot, at which point it is decoded and sent out in the exact same data types.

You can re purpose this to send data back to the dashboard by switching the port and IP addresses on the UDP reads and writes.

For a more in depth project, I off boarded our vision processing to our dashboard, and sent the target information back to the robot. I can post this code, although it is significantly more in depth than this code.

If you have any other questions, feel free to either PM me, or post on this thread again.

plnyyanks 23-02-2012 17:03

Re: Controls on dashboard
 
I have some example code attached to this post. Take a look, and I'll gladly answer any questions that might arise.

demons858 23-02-2012 19:14

Re: Controls on dashboard
 
Thanks a ton

siggy2xc 24-02-2012 00:28

Re: Controls on dashboard
 
Thanks a ton guys, I'll be trying this out at the next meeting!


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

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