|
Re: Need help with Encoders!!
If you put the attached snippet in Teleop or inside a loop in Periodic Tasks, it should keep track of the maximum distance reported by the encoder as long as the "Reset" boolean is False. The True case resets the encoder and has a constant 0 wired to the output tunnel.
(The attachment is a VI Snippet. Save it and drag it into a LabVIEW block diagram and it will become live code.)
|