![]() |
SmartDashboard Variable Not Updating...Sometimes
1 Attachment(s)
I have a LabVIEW dashboard running sending data to Java robot code. Most of the time it works, but sometimes the variable being read in the Java robot code as shown below stops updating and continues outputting the last value. If there is an exception, it should return -1, not the last value, so I'm not sure what's happening.
Code:
/** I can see through the Network Variables tab on the LabVIEW dashboard that the values are indeed being updated, yet the Java SmartDashbord.getNumber() is not reflecting the changes. Sometimes disconnecting, waiting, and reconnecting to the robot fixes it. Other times I have to reboot the robot. Does anyone know why this would happen? Thanks in advance. |
Re: SmartDashboard Variable Not Updating...Sometimes
I have seen something similar to this, with a LabVIEW dashboard sending to a java robot. However, it only occurs after a long time (10s of minutes) and only affects variables being written frequently. We changed our dashboard to only write if the new value is different then the previous value, and the problem has effectively gone away.
I haven't been able to duplicate in a clean environment, yet (eg minimal code with a good connection), I've only seen it over wireless with full robot code and dashboard. |
Re: SmartDashboard Variable Not Updating...Sometimes
As to avoid
![]() Here's the answer: Quote:
https://wpilib.screenstepslive.com/s...smartdashboard |
| All times are GMT -5. The time now is 07:26 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi