Go to Post If winning that individual match is more important to you than being there in the first place, then I believe you've got your priorities in the wrong spot. - Tom Bottiglieri [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 15-09-2013, 09:36
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 158
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Accelerometer doesn't work in robot project

When I first tried to use the kit accelerometer with the example it didn't work (with SPI).
Then I connected it with I2C and it worked (With the example).
But when I took the example to the robot project it started acting wierd,
The wiring is the same so it has nothing to do with it..

The problem is that on the begin the open vi of the accelerometer goes into infinite loop, I added a photo of it and the loop itself deep within the vi.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	45
Size:	779.8 KB
ID:	15212  Click image for larger version

Name:	2.jpg
Views:	37
Size:	467.3 KB
ID:	15213  Click image for larger version

Name:	3.jpg
Views:	27
Size:	719.5 KB
ID:	15214  Click image for larger version

Name:	4.jpg
Views:	33
Size:	842.4 KB
ID:	15215  
Reply With Quote
  #2   Spotlight this post!  
Unread 15-09-2013, 14:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Accelerometer doesn't work in robot project

what else is in your begin?

Just to verify, you ran the example on your robot and everything was fine, it was only when you integrated it with the rest of your code that it failed.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-09-2013, 19:59
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 158
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Quote:
Originally Posted by Joe Ross View Post
what else is in your begin?

Just to verify, you ran the example on your robot and everything was fine, it was only when you integrated it with the rest of your code that it failed.
Exactly, the example worked just fine.

And in the begin I have gyro, two joysticks, camera and drive motors.
__________________
2016-2017 - Programming Mentor
Curie Sub-Division Champions with 694, 379 & 1511
2015 - Team Captain & Head of Programming Crew
Carson Sub-Division Champions with 1325, 20 & 1711
First ever Israeli team on Einstein
2014 - Team Captain & Head of Programming Crew
2013 - Head of Programming Crew
2012 - Member of Programming Crew
Reply With Quote
  #4   Spotlight this post!  
Unread 16-09-2013, 09:22
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: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Accelerometer doesn't work in robot project

A couple things to check:
1. In LabVIEW go to Help>>About FIRST Robotics Competition Software... and make sure you have Software Update 5.1.0. I think we may have made an I2C fix.
2. Open WPI_I2CRead.vi and check that the CompatibilityMode switch on the front panel is ON (I think this is the fix we made). If it is not, turn it on, and then right-click on the switch and choose Data Operations>>Make Current Value Default and then save the VI.
__________________
Doug Norman
National Instruments
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:54.

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