Go to Post I can still remember how weird it was to look on the other side of our booth and see a kid in a suit tossing purple balls... - OneAngryDaisy [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 16-01-2015, 16:15
TACOCAT's Avatar
TACOCAT TACOCAT is offline
Registered User
FRC #4935 (T-Rex)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Charlotte, NC
Posts: 2
TACOCAT is an unknown quantity at this point
Question Gyro Help

Recently, we have tried to program our gyro but LabVIEW seems to find an error that is setting us back. We want to know if we could get some help with this since this is a real headache pls. GyroOpen seems to be the problem but everything is wired up correctly.



We are using this guide for gyro - https://decibel.ni.com/content/docs/DOC-26313

Last edited by TACOCAT : 16-01-2015 at 16:17.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2015, 16:49
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: Gyro Help

Quote:
Originally Posted by TACOCAT View Post
...LabVIEW seems to find an error...
We can't see that error unless you show it to us. If we don't know what it says, we're not likely to be able to help you resolve it.

Quote:
...everything is wired up correctly.
Prove it. :-) Tell us what kind of gyro you are using, and describe exactly where you are connecting each of its pins. If possible, take a picture and post it so we can see what you are talking about.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 11:34
TACOCAT's Avatar
TACOCAT TACOCAT is offline
Registered User
FRC #4935 (T-Rex)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Charlotte, NC
Posts: 2
TACOCAT is an unknown quantity at this point
Re: Gyro Help

Sorry about that, here are the photos of the problem

Just for Reference - This is the part number of the gyro we are going to use (ADW22307)
Attached Thumbnails
Click image for larger version

Name:	plshalp1.png
Views:	80
Size:	111.1 KB
ID:	17878  Click image for larger version

Name:	plshalp2.png
Views:	66
Size:	145.2 KB
ID:	17879  

Last edited by TACOCAT : 17-01-2015 at 11:39.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2015, 16:32
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Gyro Help

That appears to be a cRIO project, because it says 'slot 1' rather than 'controller 1'.

Are you doing this on a roborio? If so, you started the wrong framework when creating the project.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2015, 10:41
arizonafoxx's Avatar
arizonafoxx arizonafoxx is offline
Registered User
FRC #4395 (T-Rex)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Fort Mill, SC
Posts: 96
arizonafoxx is an unknown quantity at this point
Re: Gyro Help

Greetings,
Let me clarify what one of our students is trying to explain so everyone has more detail on what we are seeing.The project is setup as a RoboRio project. So far this is the only WPI library we can not get to work. The Gyro Open.vi appears to not be upgraded for some reason. Our motors, joystick, encoders, digital I/O, Solenoids all compiled correctly. Motors and joystick hardware have been tested on the RoboRio with this code minus the Gyro Open.vi As of right now it is not a Gyro hardware issue because the code will not compile with the Gyro Open.vi present in the code.

We are wondering if any other teams are having the same issue?
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2015, 11:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,819
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Gyro Help

I'd suggest trying the stand-alone gyro example found from the Getting Started window under:
Support -> Find FRC Examples... -> FRC Robotics -> roboRIO -> Sensors -> Gyro

That eliminates any code on your part as the cause and gives a wiring diagram to double-check.

I promise that the example works fine for me.

Note: the examples are setup to run over the USB connection by default.

I should reinforce what Tom mentioned. It appears that code has an old Gyro vi from last year, as if someone cut and pasted it from old code rather than building it from the 2015 palette.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-01-2015 at 14:18.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2015, 21:20
controls weenie's Avatar
controls weenie controls weenie is offline
Registered User
FRC #2973
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2011
Location: United States
Posts: 23
controls weenie is an unknown quantity at this point
Re: Gyro Help

I also found an anomoly using the LabVIEW vi. The analog gyro open command works fine on ai0 and ai1 but there are no selection inputs for ai2 and 3. Also there is only one controller selectable which does not include the mxp connector. Looks like we need another software upgrade soon from ni.
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2015, 06:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Gyro Help

Or since the code consistently indicates that you can only choose channel 0 or channel 1, perhaps that is a limitation of the fpga accumulator.

Do you need this for the other channel, or were you just noticing it?

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2015, 07:07
controls weenie's Avatar
controls weenie controls weenie is offline
Registered User
FRC #2973
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2011
Location: United States
Posts: 23
controls weenie is an unknown quantity at this point
Re: Gyro Help

Greg, there are 4 ain connectors on the front roborio and 4 on the mxp. Surely, ni programmed the FPGA to handle all 8 AIN lines or NI would have said something. I would like to use more than 2 AIN lines.

Thanks,
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2015, 08:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Gyro Help

There are eight AI, but how many accumulators are there? And are they multiplexed to allow for any AI to feed into them?

I believe the raw AI and other analog items like pots let you use the four built-in and four MXP channels.

I couldn't find definitive documentation, so I'm interpreting someone's code for intent. I can verify a bit later today, and if I'm wrong, I'll file the bug report and let you know how to work around the bug in the wrapper. But from what I see, it looks like the wrapper is guiding you to pick from the only channels that make sense due to the underlying implementation.

Greg McKaskle

Last edited by Greg McKaskle : 23-01-2015 at 08:32. Reason: Comment on Docs
Reply With Quote
  #11   Spotlight this post!  
Unread 23-01-2015, 09:48
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Gyro Help

In the cRIO system, you could only use gyros on AI1 & 2 (0 & 1 on the RoboRIO). This limitation is not new.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
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 17:16.

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