|
Re: Talon SRX Encoder Readouts for labview.
The dashboard has a tab called Variables. This displays all network tables contributed by any client, and updates at five or ten times per second. Look to see if the /SmartDashboard/Encoder is in the tree. If you don't find it, look for /Encoder. The vis will take a string with a prepended / as an absolute path. A string without a / will be prepended with /SmardDashboard. Be sure the robot and dashboard match exactly, case, spaces, and / will all matter.
The code you put in the attached doc didn't say where it was located. If it is not in a loop, it will run once and never again. The read and write to local is a single transfer of data and not a registration of a periodic service. So you either need to put that in a loop -- the top one work. Or you can name the display of the encoder data "Encoder" to match the SmartDashboard variable name, and place it in the Custom tab or the Basic tab. The contents of those two tabs are registered using the NT Bind, and no looping is necessary.
Greg McKaskle
|