Go to Post I'll try to sum up the icon and compile thing quickly so as not to interrupt the design of SkyNet. - Greg McKaskle [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 03-02-2012, 19:53
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Question Encoder Trouble

Hey CD,

I've worked with an encoder last year without any troubles, but I can't seem to figure out what's wrong this year.

I have the 8-slot cRio reconfigured and modules swapped (from last years positions) to what they should be as noted by FIRST. I tested with the new ribbon cable and the old thick cable (from cRio to digital sidecar).

Our robot is near-fully functional. All the PWM signals work great. Analog works, etc. The trouble is the digital inputs and it's not just the specific one on the bot because I tried with a couple. I wired up an encoder (two of them actually and I'm 101% sure the wiring was correct (I checked multiple times and then with the help of a mentor used an oscilloscope to make sure the encoders were functional as well). Even tried hooking up our old robots encoders to the sidecar and still no luck-

Our code gave no feedback from the encoders. They were initialized properly and started properly so I'm sure nothing is wrong with code. Then I tried the FRC LabVIEW Motor with encoder example and ran it. Motor outputs are fine but the encoder gave feedback this time. However, what happened is that it went from 0 to 0.003 something and back to 0, continually oscillating between the two whenever there was an output to the motor (and the shaft was actually spinning). At the bottom of the example the encoder alarm is always: "stopped" rather than moving.

Does anyone have any clue to what may be wrong or what I'm doing wrong? The digital sidecar is plugged into module 2 of the cRio, recognized as Digital Module 1 in LabVIEW. Any help is greatly appreciated
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:36.

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