Go to Post May the road accelerate in the Z direction, and the wind always be from -Y (modernized Irish blessing). - KenWittlief [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 04-02-2013, 14:43
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: labVIEW joystick connection issues

Quote:
Originally Posted by Carl View Post
The existing code only runs 1 motor controller. We can't get the other controller to respond no matter where it is plugged in. We know it works because we changed the second controller to the slot where the first has been working and all is golden.
What did you change in the code to run a second motor?

Quote:
We duplicated all the joystick code in teleop.vi and went in and changed it to USB2 (where the second joystick is attached),
That's exactly half of what you need to do. The other half is to give the RefNum for the second joystick a unique name like "Joystick 2", where the first one is "Joystick 1".

Quote:
and duplicated all the linked modules, adjusting them where we could find to adjust them to try and control the other side.
What does "duplicated all the linked modules" mean?

Quote:
Now, the dashboard thinks it has 2 joysticks, but just 1 of them is making any feedback on the readouts. The Driver Station recognized we have both joysticks attached, but LabView isn't the most intuitive at digging through pre-existing code.
There's a section in the code which sends the joystick values to the Dashboard. You should duplicate that for the second joystick, changing the obvious "1" in the string constant for the SmartDashboard name to "2".
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:50.

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