Go to Post And that's why we all need to consider reserving a "No! Bad robot!" button for the robocoach. :yikes: - vhcook [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
  #3   Spotlight this post!  
Unread 29-01-2014, 07:38
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: LabVIEW Dashboard Interfacing With Java Code

Quote:
Originally Posted by TuxCoding View Post
Yeah, we are trying to do that this year, since we switched our robot code from Labview to Java. We keep running into "Table Key not found" errors (basically not finding the values on the Dashboard and saying "Output not updated often enough"). I tried both Networktables and SmartDashboard, and was wondering how you set up the VI and .java file?
The "Output not updated often enough" message is from the motor safety stuff, most likely from a RobotDrive object you created in your code. The idea is that if the RobotDrive outputs aren't updated often (every 100ms by default) it assumes that the program crashed and stops the PWM output to the motors. You can either make sure to keep updating motor values in any loops you have or disable the motor safety with:
Code:
yourRobotDriveObject.setSafetyEnabled(false);
To address the "Table key not found" error, you can see what values are in NetworkTables using the OutlineViewer.jar program. Just run it on your driver station computer and it will show you all the keys and values in NetworkTables. Then you can verify that the key is being written. For the SmartDashboard supplied with C++ and Java the keys need to be in a subtable called "SmartDashboad". I'm not sure about the LabVIEW dashboard, but will find out and add it to this post a little later today.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
 


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