Go to Post Duct tape can fix everything except relationships with other people. - dixonij [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
  #4   Spotlight this post!  
Unread 06-02-2011, 13:34
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Smile Re: Using an Encoder to Measure Forklift Height

Quote:
Originally Posted by WizenedEE View Post
In begin.vi:
1) Digital input Open
2) DevRef to "Counter to digital Source"
3) DevRef to encoder open
4) Repeat 1 - 3 for second input of encoder
5) DevRef to encoder set RefNum
In teleop.vi:
6) Encoder get RefNum
7) DevRef to Encoder Get

The encoder get can return a ton of very useful things. If you set the encoder open.vi correctly, you could get the get function to return the direct height of the arm! You can also get the direction, if it's stopped, etc.

Thanks! Just to clarify: in begin I should initialize one encoder but have two inputs for the dio using two seperate initializers but wire them into one to have in memory and in teleop I will access them and then have them get values.

However I'm confused by where the results of the get values would appear. Will they show somewhere in the DS? (I haven't been able to experiment yet, and won't be able to until tomorrow).

Once again, thanks!

and @Greg: thanks! I'll definitely take a look at that before experimenting ^^ tomorrow!

Last edited by CRLS97 : 06-02-2011 at 13:59.
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 01:15.

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