I’m running the example Global Listener (from the robotpy examples) on the raspberry pi. I see the /smartdashboard key for my variables but only once (or twice). Other stuff continues to log. The robot is enabled.
I also read the variable in periodic task.vi and do see it updating regularly their (in robot global variables). I took that to mean that the dashboard is writing the value to the network table, but I’m not sure why I’m not seeing these updates on the Rpi. I also already did the inverse, updating a value on the Rpi and reading fine on the robot. Any ideas?
Are you using listener or “polling” the network table for the value directly? Our team has had issues with registering listeners, but checking the table directly works fine.
What language are you running on the RoboRIO? Java, C++, or LabView? If you’re running LabView on the robot (the NT server), there’s a known issue with NT values not propagating between Java/C++/Python clients through a LabView server.
It’s not currently documented (we’ll get it up on screensteps soon). NI is aware but I don’t have a timeline for a fix being available. To be more specific, the issue is with the LabView server sending updates from any language client to a C++/Java/Python client. So if the dashboard you were using was LabView you’d see the same issue. LabView clients are fine, and changes made on the server also propagate correctly. So you could have the LabView robot program listen for the dashboard change and set a value in a different table as a workaround; the latter will make it to the rPi.