|
Re: How to use eeprom in labview
To play it back you can run a While loop inside the Autonomous vi - Set initial conditions, e.g., pseudo-joystick values = zero
- Feed initial pseudo-joystick values into motor set speed
- While forever loop (with an appropriate delay)
- Read one playback line
- In an inside loop (with an appropriate delay)
- Keep checking until elapsed time >= recorded Robot Time (make sure the times are measured the same)
- When the condition is true, pass the new pseudo-joystick values out, exit the inside loop
- Feed pseudo-joystick values into motor set speed
- Make allowances to set speed to zero after the last playback line is read as a safety measure (that'll also help handle partial/incomplete playback files)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 02-09-2011 at 16:29.
|