Quote:
Originally Posted by kws4000
Just a question pertaining to loops, which may have something to do with soleoids: wouldn't putting loops with "waituntil millisecond" control into the TELEOP subvi cause everything above it run slow, because it is already stuck inside a while loop on the Robot Main?  A NI rep told me that loops run only as quickly as the slowest object inside them, wheter waiting for an answer or a timer.
Any facts here, with a diagram?
Thanks
|
Yes, however, I'm not sure your question belongs in this thread ...
Putting a WAIT for anything more than 20msec will cause your Teleop watchdog to starve ... there's a relatively new thread in here that shows a way to put a 1-second wait into a state machine so you don't have to stall your Teleop. It involves the use of shift registers to employ some loop-to-loop memory so you can pick a time to exit without specifically "waiting" for that time to elapse. Here's a link ... there's a diagram in the last post ...
http://www.chiefdelphi.com/forums/sh...ad.php?t=82255