Go to Post canadians are amazing.. - Ashley Christine [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 09-02-2015, 19:33
Potatoes's Avatar
Potatoes Potatoes is offline
Registered User
AKA: Eric Wittmann
FRC #5136 (Mecha Pirates)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Santa Ynez, CA
Posts: 17
Potatoes is an unknown quantity at this point
Encoder Help

Hello, this year our team is using this encoder to measure our robot's movement.
http://usdigital.com/products/encode...rotary/kit/E4P

We are having trouble programming it in LabView. Below are screenshots of our current code in begin and teleop, mostly just copied from the encoder example. It's not reading any values from the encoder, and we've double checked our wiring on the robot. Is this year's LabView different for encoders?
Attached Thumbnails
Click image for larger version

Name:	begin vi.png
Views:	54
Size:	12.1 KB
ID:	18247  Click image for larger version

Name:	teleop vi.png
Views:	52
Size:	10.5 KB
ID:	18248  
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2015, 19:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,833
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: Encoder Help

Does the original stand-alone example work with the encoder?
If that doesn't work, then you'll know it's not your code either.

Your code looks simple enough unless there are some unusual control values involved.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2015 at 07:22.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2015, 22:13
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: Encoder Help

We can't see what values you have set the controls to on the front panel of Begin. Is there a reason you didn't make them constants instead of controls?
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 21:27.

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