Go to Post The robot competition is the most obvious, visible, and distilled-media-friendly part of the picture... We shouldn't be surprised that it's all that gets into the news coverage, when that coverage is managed by someone who isn't already well versed in what FIRST is trying to do. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 29-01-2015, 22:01
natefun natefun is offline
Registered User
FRC #0141
 
Join Date: Jan 2015
Location: Holland MI
Posts: 2
natefun is an unknown quantity at this point
Talon SRX PID feedback LabVIEW example

Could somebody post an example of how to implement a PID loop on the CAN Talon SRX in LabView? The software reference guide only tells you how in C. (Section 18) It would be greatly appreciated if anyone could help me.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2015, 22:16
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Talon SRX PID feedback LabVIEW example

Section 18 is not a C++ code example. It is the verbatim PIDF implementation in the Talon firmware. The Talon firmware is not open-source, but I felt teams would still benefit to see how the PIDF is implemented in the Talon firmware to best understand how to leverage it.

Each section in the software ref manual has an LV example for individual parameters (like gain setting, selecting feedback device, flipping sensor direction, selecting the mode). Use a pdf viewer that can show you the bookmarks, and expand the bookmarks to quickly navigate thru the LabVIEW examples.

So for example Section 12.1.1 has the LV example for gain setting, an important part of closed-looping.

Bottom of section 11.1 has a list of signals that you might be interested...
Quote:
Beyond the Motor Control Profile Parameters, closed-loop modes requires selecting
-which control mode (position or velocity)
-which feedback sensor to use
-if the feedback sensor should be reversed
-if the closed-loop output should be reversed
-what is the latest target or set point
-the global ramp rate (if specified)
-which Motor Control Profile Slot to use.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2015, 23:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Talon SRX PID feedback LabVIEW example

What you are asking for is already one of the included LabVIEW examples.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2015, 07:37
natefun natefun is offline
Registered User
FRC #0141
 
Join Date: Jan 2015
Location: Holland MI
Posts: 2
natefun is an unknown quantity at this point
Re: Talon SRX PID feedback LabVIEW example

Ok, Thank both of you guys!
Reply With Quote
Reply


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 20:13.

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