FIRST Tech Challenge Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Encoder (Archived)

Update: This discussion applies to Issues from the 2010 FTC season and is no longer relevant for current FTC competition software.


We are wanting to program a encoder on a wheel and are not certain how to set up the structure of the wiring diagram.  We are not certain the order or number of blocks to use.  Thanks for the help.

0 Kudos
Message 1 of 2
(6,031 Views)

Terry,

Certain VIs in the TETRIX palette always utilize encoders and one will utilize encoders only when using the constant speed input.  These VIs are the TETRIX Move DC Motors VI (with the Control Mode input set to Constant Speed), the TETRIX Move Fixed Distance VI, the TETRIX Motor Status VI, and the TETRIX Reset Encoders VI.  The image bellow shows all of these VI and their appropriate inputs and outputs wired up. 

TETRIX VI with Encoders.png

I have also created an example that shows how we can use these VIs to stop 4 drive motors even though only two of the drive motors have encoders connected to them.  This will also give you an idea of how to use these VIs in an actual program. 

Stop 4 motors based on encoder counts even if only two have encoders.

Let me know if you have any further questions on this topic.

Cheers,

Mark

LabVIEW R&D

Mark
NI App Software R&D
0 Kudos
Message 2 of 2
(3,146 Views)