Go to Post It's not very graciously professional to point out the un-gracious professionalism in others. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2016, 15:27
tedlasai tedlasai is offline
Registered User
FRC #2996
 
Join Date: Feb 2016
Location: Colorado Springs
Posts: 7
tedlasai is an unknown quantity at this point
Talon SRX Encoder Readouts for labview.

Hello!!

We are having problems getting encoder values to go to the dashboard. We are using the CAN talon speed controller.vi found under the help>find examples in labview. When we deploy the vi it displays values to its front panel. We see the readouts on the graph. However, right once we try displaying the values to the dashboard it stops working.

To display to the dashboard we are using in the VI:
NT WRITE and setting the name "Encoder"
Then connecting the value to the terminal

To display to the dashboard we are using this dashboard code.

NT READ and setting the name to "Encoder"
Connecting that to an indicator and putting that on the dashboard.

Code is attached below.

Does anyone have any idea of why the encoder is not printing values? It prints to the front panel of the VI but not to the dashboard. How come?

Thank You
Sai
Attached Files
File Type: docx Code that we are using..docx (29.7 KB, 20 views)
  #2   Spotlight this post!  
Unread 07-02-2016, 09:14
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Closed Thread


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 09:53.

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