|
Re: Using an Encoder to Measure Forklift Height
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.
|