Go to Post "my life is incomplete, my nose has lost the imprint of my safety goggles." - Nin_estarSaerah [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 06-02-2017, 12:18
arushshah1 arushshah1 is offline
Registered User
FRC #6203
 
Join Date: Mar 2016
Location: Hackensack, NJ
Posts: 15
arushshah1 is an unknown quantity at this point
Network Tables Issue

I'm trying to create a PID visualization system using python and matplotlib. I'm putting the values of the joystick on the smart dashboard but I'm unable to get the value through python using pynetworktables. Here's my code to access the values.

Code:
from networktables import NetworkTable

NetworkTable.setIPAddress("roboRIO-6203-frc.local")
NetworkTable.setClientMode()
NetworkTable.initialize()

table = NetworkTable.getTable("SmartDashboard")
left = table.getNumber("left")
I get the error KeyError: '/SmartDashboard/left'

I'm on the team network and I've confirmed that "left" is being published to the Smart Dashboard. Any reason why this isn't working?
Reply With Quote
 


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:47.

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