Go to Post ...all that matters in my opinion is how much personal growth each one of you all achieve from being a part of this wonderful organization known as the FIRST robotics program. - Elgin Clock [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2014, 20:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,588
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
LabVIEW Dashboard Interfacing With Java Code

I was recently asked the following question via PM, but I thought the answers might be helpful for other people, and so that other more experienced people could chime in.

Quote:
Have you been able to interface Java with LabVIEW so that sensor data is automatically shown. What I mean by this is something like when I call

SmartDashboard.put ("Intake Roller", intakeRollerSpeed);

in the SmartDashboard this would automatically populate with a label Intake Roller and the value would get updated accordingly. Is there someway I can implement automatic population in a custom LabVIEW Dashboard and a Java coded robot?
I have not looked very much at the 2014 LabVIEW Dashboard, but I expect it would be similar to 2013. The 2013 dashboard had a tab called Operation. Any controls you placed on that tab would be automatically bound to the SmartDashboard variable of the same name as the control. This isn't quite as easy as the Java Smartdashboard since the controls don't appear automatically, but it's very easy to drag a new control to the tab and rename. This will also transmit any changes made to the control on the front panel. It will not transmit any changes made programmatically, so you can't use this, for example, to send vision data that was processed on the dashboard to the robot.

Additionally, the Variables tab shows all Smartdashboard variables in a tree format.

Quote:
From my understanding I have to send my data to a NetworkTable with a key and value in my Java code and call upon the same key in my LabVIEW Dashboard to view the feedback.
This is the more flexible way to do it. I would recommend using the SmartDashboard class in Java and the SmartDashboard VIs in LabVIEW (NetworkTable is a little lower level). You can do additional calculations in LabVIEW either before transmittal or before display.

Last year, we used a nicely configured LabVIEW dashboard with large indicators and controls that the drivers could use. When the programmers wanted to debug something, we would bring up the java smartdashboard, because it was more convenient to send and receive arbitrary variables. You can even have both of them running at the same time.

Last edited by Joe Ross : 28-01-2014 at 20:59.
 


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 22:07.

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