Go to Post While in the Navy, we had an apparent leak in one of our systems and it took me 7 months to track it down. Just because you haven't found it, doesn't mean it doesn't exist. - TubaMorg [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
  #1   Spotlight this post!  
Unread 20-02-2012, 07:45
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
Encoder keeps stopping?

Hey. Today I wired our encoder to the sidecar with two PWMs:

+5 (orange) = PWR of #1
A (blue) = SIG of #1
Gnd (brown) = GND of #1
B (yellow) = SIG of #2

and after wiring it I intergrated the Encoder Example to the default robot project. When I ran the code, I went to teleop to check the indicators, and they were all zero, plus it said that the Encoder Stopped. So I tried adding a joystick button that when pressed called the Start VI of the Encoder. What happened is that every time I hit the button to start the Encoder, the distance went down by 0.25. I tried changing the Decoding Type from 4x to 1x and then the distance went down by 1, so I believe it goes down by 1/Decoding Type.

What can cause this problem? Is the wiring okay?

Thanks.
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 11:22.

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