Go to Post Competitions are won or lost far away from witnesses, ... In those long hours, is where we find inspiration in ourselves. For what inspires is not another's feats, but realize we have the power in ourselves to achieve that feat. - Mark Sheridan [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 05-02-2017, 22:41
Hess1113's Avatar
Hess1113 Hess1113 is offline
Grab a computer and code it up!
AKA: Christopher Hess
FRC #0291 (Creativity In Action)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Erie, PA
Posts: 23
Hess1113 is an unknown quantity at this point
Autonomous Encoders Read Off LabVIEW

In LabVIEW how do you get the encoders to read off to the dashboard during autonomous. The only reading we can get is when we start the autonomous due to the encoder command being ran once.
__________________
Christopher Hess
Co-Lead Programmer
Webmaster
FRC-Team 291 CIA
www.team291.com
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2017, 23:18
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,938
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: Autonomous Encoders Read Off LabVIEW

Feed the Dashboard the Encoder values in a loop in Periodic Tasks.vi, not in Autonomous or Teleop.
Remember to throttle the loop down or just drop it in that default 100ms While loop.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2017 at 23:22.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2017, 07:52
Hess1113's Avatar
Hess1113 Hess1113 is offline
Grab a computer and code it up!
AKA: Christopher Hess
FRC #0291 (Creativity In Action)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Erie, PA
Posts: 23
Hess1113 is an unknown quantity at this point
Re: Autonomous Encoders Read Off LabVIEW

Quote:
Originally Posted by Mark McLeod View Post
Feed the Dashboard the Encoder values in a loop in Periodic Tasks.vi, not in Autonomous or Teleop.
Remember to throttle the loop down or just drop it in that default 100ms While loop.
Thank you but do you have kind of example to this way?
__________________
Christopher Hess
Co-Lead Programmer
Webmaster
FRC-Team 291 CIA
www.team291.com
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2017, 14:36
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,938
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: Autonomous Encoders Read Off LabVIEW

Maybe something like this:
Although the encoder used in this example has to be turned a lot to show up on this scale.
You might want to start with a smaller scale on the Dashboard gauge.
Attached Thumbnails
Click image for larger version

Name:	DashboardEncoder.jpg
Views:	12
Size:	81.1 KB
ID:	21726  Click image for larger version

Name:	EncoderFeedback.jpg
Views:	12
Size:	30.0 KB
ID:	21727  Click image for larger version

Name:	EncoderBegin.png
Views:	8
Size:	30.0 KB
ID:	21728  Click image for larger version

Name:	EncoderPeriodicTasks.jpg
Views:	11
Size:	22.1 KB
ID:	21729  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-02-2017 at 15:08.
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 02:00.

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