Go to Post If your goal is to win matches... Pick the most capable candidate. If your goal is to change lives... Sometimes you pick those that need the most change. - IKE [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 11-02-2016, 15:48
2386programming 2386programming is offline
Registered User
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Burlington
Posts: 34
2386programming is an unknown quantity at this point
CAN Talon SRX Not Working

I can't for the life of me figure out how to program the talon srx to work. Can someone take a look at my begin and teleop.vi and tell me if you see something wrong?? Mind the broken wires in the teleop code, it was how i copied it. Also the initialization of the motor and the teleop code are from the appropriate vi.
Attached Thumbnails
Click image for larger version

Name:	srx code.png
Views:	37
Size:	211.3 KB
ID:	20039  
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2016, 12:21
blturner blturner is offline
Registered User
FRC #5013 (Trobots)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2006
Location: Kansas City
Posts: 27
blturner is on a distinguished road
Re: CAN Talon SRX Not Working

You don't seem to be putting in a device number. Use the context help under the help menu to see the description.
I can't remember if the default device ID for new Talons is 0 or 1 The VI may default to 0 and that MIGHT work but I would always specify. The other inputs could be left unconnected. If you have more than one Talon you have to set the IDs

To set the device ID of the Talon you use a web browser and connect to the IP address of the RoboRIO. 10.xx.xx.20 Where the xx.xx is your team number. The webpage there is easy to use. But I think there are screenstep tutorials for it.

You can create an indicator on the error out terminal and see if the VI reports any errors.
SecStick is not the default name of the joystick in the default code. So check that the driver station does not report any not found errors.

The help calls it device number and device ID in different places which can be confusing.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2016, 16:01
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 522
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: CAN Talon SRX Not Working

^ browser settings should be "www.roborio-2386-frc.local"
Use IE or firefox with silverlight plugin.

Set can id to non-zero, and then use that id in begin.vi as suggested.

http://wpilib.screenstepslive.com/s/...ribution-panel

^Setting can for the PCM, good reference for SRX.
__________________
The sooner we get behind schedule, the more time we have to catch up.


Last edited by tr6scott : 12-02-2016 at 16:04. Reason: Added Link
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:25.

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