Go to Post The robot is talking to you, you must listen to find out what might be wrong. - Al Skierkiewicz [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2017, 08:50
swolverines's Avatar
swolverines swolverines is offline
Registered User
FRC #3839
 
Join Date: Jan 2017
Location: Wadena, MN
Posts: 3
swolverines is an unknown quantity at this point
Question Struggling with LabView and Talon SRX CAN

No one on my team is very versed with LabView. I have just been recycling the same code year after year. Unfortunately? I am unable to do that this year, as we are planning to use CAN motor controllers. We got them all updated and programmed yesterday so they have their own ID numbers. I can't for the life of me figure out how to program them though. We used to just pick an Open 4 Motor and assign the PWMs and boom, we were done. I just can't figure this out. ANY help is appreciated. I read the Software Reference Manual for the Talon SRX, installed the special vi's, but it doesn't make any sense to me.

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2017, 09:08
Billfred's Avatar
Billfred Billfred is online now
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,563
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Struggling with LabView and Talon SRX CAN

Quote:
Originally Posted by swolverines View Post
No one on my team is very versed with LabView. I have just been recycling the same code year after year. Unfortunately? I am unable to do that this year, as we are planning to use CAN motor controllers. We got them all updated and programmed yesterday so they have their own ID numbers. I can't for the life of me figure out how to program them though. We used to just pick an Open 4 Motor and assign the PWMs and boom, we were done. I just can't figure this out. ANY help is appreciated. I read the Software Reference Manual for the Talon SRX, installed the special vi's, but it doesn't make any sense to me.

Thanks in advance.
1) You should really read the rules in the manual as they pertain to software development before Kickoff. (I don't know for sure if you'd be violating them, but it's possible.)
2) As was announced months ago on the FRC blog, third-party device code is out of WPILib starting this year. Read this: http://wpilib.screenstepslive.com/s/...-talon-srx-can
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2017, 10:29
swolverines's Avatar
swolverines swolverines is offline
Registered User
FRC #3839
 
Join Date: Jan 2017
Location: Wadena, MN
Posts: 3
swolverines is an unknown quantity at this point
Re: Struggling with LabView and Talon SRX CAN

1) By recycling I mean rebuilding. It's pretty simple code to re-write. We create a fresh version of the code every year.

2) I saw that, I installed the stuff that gave me the vi's pertaining to the Talon, but I don't know what to do with them, which is where the problem lies.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2017, 11:27
Hess1113's Avatar
Hess1113 Hess1113 is offline
Grab a computer and code it up!
AKA: Christopher Hess
FRC #0291 (Creativity In Action)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Erie, PA
Posts: 23
Hess1113 is an unknown quantity at this point
Smile Re: Struggling with LabView and Talon SRX CAN

Our team did the same thing and we switch over to CAN Talon SRX. I found that you had to mix the Motors controllers and specially VI's. I also found code examples by searching in google images "CAN Talon SRX Example Code". If you need any help I am also available via skype or email. Just direct message me. Also Github has examples.
Happy building

Last edited by Hess1113 : 17-01-2017 at 11:31. Reason: Just Remembered an Idea
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2017, 21:24
zvankirk zvankirk is offline
Registered User
FRC #3991 (KnightVision)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Baton Rouge
Posts: 1
zvankirk is an unknown quantity at this point
Re: Struggling with LabView and Talon SRX CAN

First, download the toolsuite. The CAN SubVIs are not included in this year's labview distribution.

http://www.ctr-electronics.com/downl...20v4.4.1.9.zip

Install, then download the FRC examples -- use these for some guidance.

https://github.com/CrossTheRoadElec

The basic programming of the Talon SRX is the same as the old Talon, but the SRX can do much much more! Have Fun!
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2017, 12:26
GrizBear GrizBear is offline
Registered User
AKA: Mason
FRC #4296 (Trident Robotics)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Illinois
Posts: 2
GrizBear is an unknown quantity at this point
Re: Struggling with LabView and Talon SRX CAN

Quote:
Originally Posted by swolverines View Post
No one on my team is very versed with LabView. I have just been recycling the same code year after year. Unfortunately? I am unable to do that this year, as we are planning to use CAN motor controllers. We got them all updated and programmed yesterday so they have their own ID numbers. I can't for the life of me figure out how to program them though. We used to just pick an Open 4 Motor and assign the PWMs and boom, we were done. I just can't figure this out. ANY help is appreciated. I read the Software Reference Manual for the Talon SRX, installed the special vi's, but it doesn't make any sense to me.

Thanks in advance.
I had this struggle because I wanted to open four motors for the mecanum drive. This is what worked for me:

Download the CTR SRX libraries.
Modify the open 4motor vi by replacing the open motors, with the open motors from the srx palette. Replace variable accordingly.

If you have any questions on the exact process, let me know, I'd love to help.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2017, 13:01
Jacob C. Jacob C. is offline
Engineer at CTR Electronics
FRC #4130 (The Blue Devils)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Richmond, MI
Posts: 21
Jacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of light
Re: Struggling with LabView and Talon SRX CAN

Quote:
Originally Posted by GrizBear View Post
I had this struggle because I wanted to open four motors for the mecanum drive. This is what worked for me:

Download the CTR SRX libraries.
Modify the open 4motor vi by replacing the open motors, with the open motors from the srx palette. Replace variable accordingly.

If you have any questions on the exact process, let me know, I'd love to help.
You should not have to modify any existing sub-VIs to have CAN Talon SRX work with the Open 2/4 Motor VIs. In fact, I would definitely recommend not doing these modifications unless you are extremely proficient in LabVIEW.

To use CAN Talon SRX with these multi-motor Open VIs, wire the output of the Talon SRX Open VI to the input of the Open 2/4 Motor VI when "Existing Motors" is selected from the drop-down. There is an example of this in our LabVIEW Simple Arcade Drive Example on GitHub.
__________________
FiM Volunteer
Since 2015: Controls Mentor for FRC 4130, The Blue Devils (Richmond, MI)
2009-2014: FRC Team 1718, The Fighting Pi

Full Disclosure: I am an Engineer for CTR Electronics
Reply With Quote
  #8   Spotlight this post!  
Unread 20-01-2017, 10:44
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 125
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Struggling with LabView and Talon SRX CAN

For those who don't want to go digging around in GitHub, here's a screenshot of what this should look like.

The numbers (1,2,3,4) correspond to the Device IDs you gave the Talons when you set them up on the Rio's configuration page.

You may have to change which motors are inverted based on your robot's setup.
Attached Thumbnails
Click image for larger version

Name:	Drive - Open 4 Talon SRX.PNG
Views:	71
Size:	9.4 KB
ID:	21590  
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
Reply With Quote
  #9   Spotlight this post!  
Unread 26-01-2017, 14:58
fizxtchr fizxtchr is offline
Cass Tech Nerd Master
AKA: Karl Balke
FRC #2673 (Tenacious Technicians)
Team Role: Teacher
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Detroit
Posts: 2
fizxtchr is an unknown quantity at this point
Re: Struggling with LabView and Talon SRX CAN

Quote:
Originally Posted by JCharlton View Post
For those who don't want to go digging around in GitHub, here's a screenshot of what this should look like.

The numbers (1,2,3,4) correspond to the Device IDs you gave the Talons when you set them up on the Rio's configuration page.

You may have to change which motors are inverted based on your robot's setup.
Thank you for the diagram. My programmers took one look and left smiling!
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 10:56.

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