Go to Post This thread is making me all vaklempt. :) This is FIRST at its best! Advice, offers for spare parts, and even lunch! You all ROCK! :D - Cynette [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 27-01-2010, 07:51
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Exclamation Labview Joystick Input Example code not working

Howdy All,

For the life of us we can't get the Joystick Input example code working. We've updated the cRio firware to v19, update the driver station code & Labview to the latest versions. We've tried every USB port on 2 computers as well as changing the USB1-USB4 parameters. We tried 3 different types of joysticks, 2 of which were working last year.

The default dashboard sees the joystick and acknowledges button pushes.

We're stumped. The example is very straight forward and simple - can't understand what's going on.

Has anybody else tried the Joystick Input example and got it to work?

Cheers,

- Jeff
__________________
Fresh Pancreas!
  #2   Spotlight this post!  
Unread 27-01-2010, 09:57
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by jsprigg View Post
Howdy All,

For the life of us we can't get the Joystick Input example code working. We've updated the cRio firware to v19, update the driver station code & Labview to the latest versions. We've tried every USB port on 2 computers as well as changing the USB1-USB4 parameters. We tried 3 different types of joysticks, 2 of which were working last year.

The default dashboard sees the joystick and acknowledges button pushes.

We're stumped. The example is very straight forward and simple - can't understand what's going on.

Has anybody else tried the Joystick Input example and got it to work?

Cheers,

- Jeff
I tried to run the joystick example.vi but couldn't get it to work and gave up.

It worked last year. To me, it doesn't look like it has changed from last years code. Could the way they use RefNum Registry Set VIs this year be something to do with it? Maybe the code has to be modified to use them?

Where in the Dashboard does it acknowledge Joystick buttons? I missed that...
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

  #3   Spotlight this post!  
Unread 27-01-2010, 10:02
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Labview Joystick Input Example code not working

jsprigg,

We're having the same issue. I posted it under title

"HELP!! No readouts anywhere on dashboard"

Have gotten a couple of responses. Take a look and see if any help you guys out. We're going to try them as soon as I get a programmer in my classroom. Can't for the life of us figure out what's going on either.

Best of luck and if we figure out our problem I'll shoot you a message letting you know what our solution was. Would appreciate the same...

Robyn
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #4   Spotlight this post!  
Unread 27-01-2010, 10:26
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by rsegrest View Post
jsprigg,

We're having the same issue. I posted it under title

"HELP!! No readouts anywhere on dashboard"

Have gotten a couple of responses. Take a look and see if any help you guys out. We're going to try them as soon as I get a programmer in my classroom. Can't for the life of us figure out what's going on either.

Best of luck and if we figure out our problem I'll shoot you a message letting you know what our solution was. Would appreciate the same...

Robyn
Robyn,

I think Doc Wu is on to something here. If he is correct, it looks like the example code from last year is the same for this year. Some fundamental changes have occured between the two seasons. I would suggest ignoring the example code (at least for the joystick)... and try to build your own example from the Basic Robot Code provided (when you build a new robot project) - the exact name/process escapes me right now.

Cheers,

- Jeff
__________________
Fresh Pancreas!
  #5   Spotlight this post!  
Unread 27-01-2010, 10:34
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 136
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Labview Joystick Input Example code not working

I just ran the LabVIEW Joystick Input Example - it worked for me. I have the Driver Station running, and I can read the joystick in Teleop Enabled or Teleop Disabled. A couple things to check:
1. On the DS Setup tab, do you see your joystick in the Joystick Setup list?
2. If you click the main button on your joystick, does the text in the Joystick Setup turn blue?
3. On the DS Diagnostics tab, are you getting any errors?
  #6   Spotlight this post!  
Unread 27-01-2010, 11:34
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Red face Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by Doug Norman View Post
I just ran the LabVIEW Joystick Input Example - it worked for me. I have the Driver Station running, and I can read the joystick in Teleop Enabled or Teleop Disabled. A couple things to check:
1. On the DS Setup tab, do you see your joystick in the Joystick Setup list?
2. If you click the main button on your joystick, does the text in the Joystick Setup turn blue?
3. On the DS Diagnostics tab, are you getting any errors?

Now I feel stupid.

I just realized what we were doing wrong. The DS must be running when we run our code (DUH). We never had it running during testing. Guess I need to read the instructions more closely rather than 'skim' to the highlights.

See last year we would take for granted that the DS (blue box) handled the joysticks etc... for us. The new DS (laptop) can't handle I/O unless the DS software is running - which makes perfect sense.

Thanks for putting me on the right track. We'll give it a whirl tonight.

Cheers!

- Jeff
__________________
Fresh Pancreas!
  #7   Spotlight this post!  
Unread 27-01-2010, 19:50
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Labview Joystick Input Example code not working

Jeff and Doug,

I am going to post this both here and in my thread in hopes of a quick answer. We tried steps and here are the results:

When we run the code and switch to the driver account:
1. Text turns blue when joystick buttons depressed
2. Robot code (right below the team number) turns solid green

However...still blinking yellow lights on jags...

Any ideas?

Thanks,
Robyn
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #8   Spotlight this post!  
Unread 27-01-2010, 20:30
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Labview Joystick Input Example code not working

WE HAVE MOTOR RESPONSE!!!!! Our programmer was reading your posts and banging his head against the classmate and motors and I walked to the back room to check on the mechanical when suddenly I heard motors spinning. The programmer said that there were LOTS of things wrong but had to go to tennis lesson before he could explain. He's coming back at 9:00 (CST) so will ask him what it was and post back then.

THANK YOU ALL FOR ALL YOUR HELP AND SUGGESTIONS!!!

What would we do without Delphi?!
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #9   Spotlight this post!  
Unread 28-01-2010, 10:37
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by rsegrest View Post
Jeff and Doug,

I am going to post this both here and in my thread in hopes of a quick answer. We tried steps and here are the results:

When we run the code and switch to the driver account:
1. Text turns blue when joystick buttons depressed
2. Robot code (right below the team number) turns solid green

However...still blinking yellow lights on jags...

Any ideas?

Thanks,
Robyn
Robyn,

Glad to hear you've got it working!

Our problem is solved... we weren't running the Driver Station program during testing :-)

Cheers,

- Jeff
__________________
Fresh Pancreas!
  #10   Spotlight this post!  
Unread 28-01-2010, 16:53
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by rsegrest View Post
When we run the code and switch to the driver account...
In general, this is a bad way to do development. If you want to develop code on the classmate, you should simply run the driver station application from the start menu in the developer account, not switch accounts. If you switch accounts, you can get into a state where it's not clear to other people on your team what's running and you will end up wasting time trying to figure out why there is no communication with the robot. If you avoid doing this you won't risk this wild goose chase.
  #11   Spotlight this post!  
Unread 27-01-2010, 10:16
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
Thumbs up Re: Labview Joystick Input Example code not working

Quote:
Originally Posted by Doc Wu View Post
I tried to run the joystick example.vi but couldn't get it to work and gave up.

It worked last year. To me, it doesn't look like it has changed from last years code. Could the way they use RefNum Registry Set VIs this year be something to do with it? Maybe the code has to be modified to use them?

Where in the Dashboard does it acknowledge Joystick buttons? I missed that...
Ah! That does make sense. We'll take a look at the new basic robot code and Extrapolate an example from that.

Much appreciated!

As for the Joystick button press acknowledgement in the dashboard - I forget which page it is on (I think it is the setup page where you can re-arrange the joystick ports). When you press any button, the joystick name changes to a blue colour acknowledging the button press.

Cheers,

- Jeff
__________________
Fresh Pancreas!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Sample Code not working... hm29168 CAN 5 27-01-2010 20:59
Labview programming help - Deploy mode not working ferc Programming 3 20-10-2009 18:32
Activation of LabView still not working apollorest National Instruments LabVIEW and Data Acquisition 4 22-11-2008 21:09
Camera code not working.... DemonYawgmoth Programming 5 11-02-2006 09:21
frc_camera not working but labview does Issues Programming 7 18-01-2006 19:23


All times are GMT -5. The time now is 01: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