What is the best way to run multiple steps with an encoder in LabVIEW?

Hi!
So I have been having this issue with my autonomous code. I want to run a motor 5 revolutions forward, stop for 100 ms, then a different motor 5 revolutions backwards, but I am not quite sure how to code this. Do I use a For Loop, While Loop, and Flat Sequence Structure? Do I put my drive values on the inside if I use a Loop or the outside?

Something like this?
The motor/sensor directions may be reversed in your implementation.

Yes, this works! We used this for the arm and charge station. Thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.