Go to Post Don't fight bureaucratic morons... embrace them! Humour and publicity will take care of the rest. - dtengineering [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 18-02-2010, 23:40
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
encoder works, and then it doesn't.

I was testing out the encoder a few days ago using the encoder vi example provided by ni, and it worked perfectly. The next day, i ran the same exact code, no changes. And it would not work. The electrical person checked the electrical, and the program wasn't changed at all. Any ideas?
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2010, 06:11
Noamr Noamr is offline
Registered User
FRC #1574 (Miscar)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Israel
Posts: 21
Noamr is an unknown quantity at this point
Re: encoder works, and then it doesn't.

Check the pink devref input that goes into the get encoder vi
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2010, 09:40
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: encoder works, and then it doesn't.

Encoders are fairly fragile. Have you checked it with an oscilloscope?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2010, 09:56
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: encoder works, and then it doesn't.

Quote:
Check the pink devref input that goes into the get encoder vi
Quote:
Originally Posted by Joe Ross View Post
Encoders are fairly fragile. Have you checked it with an oscilloscope?
thanks i'll see if we can try both.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2010, 20:49
Lucario231's Avatar
Lucario231 Lucario231 is offline
Registered User
FRC #0033 (Killer Bees)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: United States
Posts: 29
Lucario231 is an unknown quantity at this point
Re: encoder works, and then it doesn't.

WELLl i am having the same problem with the encoders not working one day that not working.

Electrical checked them and they are working
The code is not sending errors and the defref is fine

I have 5 NEW encoder and none of them are working.

The encoders do work via voltmeter

Last edited by Lucario231 : 23-02-2010 at 20:52.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2010, 21:42
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: encoder works, and then it doesn't.

Again, try the encoder VI with no changes and all by itself. If it works, it's your code.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2010, 23:14
Noamr Noamr is offline
Registered User
FRC #1574 (Miscar)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Israel
Posts: 21
Noamr is an unknown quantity at this point
Re: encoder works, and then it doesn't.

Maybe the encoder example will help- it will remove any doubt of code issues.
You should also check that it's being initialized right:
We had a problem when we accidentally deleted the wiring between the begin VI to the sequence that calls the vision VI and the periodic VI. So the encoders devref did not show an error, but on the other hand it also did not show the right channels or mode (it's supposed to be on 4X).
Reply With Quote
  #8   Spotlight this post!  
Unread 27-02-2010, 14:21
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: encoder works, and then it doesn't.

thanks for all the help. The encoder's didn't work because of a bad digital sidecar, but now something wierder is happening. When I run the raw encoder get program, i get different values (distance) it each time i run the program.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
vex encoder works with innovation first? cau.denny General Forum 1 28-02-2009 08:17
Run works but build&deploy doesn't program1 NI LabVIEW 3 03-02-2009 22:32
pic: Mike Williams, then and now Rich Kressly Extra Discussion 7 07-04-2006 21:45
And then it hit me.... Joe Johnson General Forum 12 07-02-2002 22:29
And then there were none... Joe Johnson General Forum 2 21-10-2001 23:31


All times are GMT -5. The time now is 22:04.

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