|
Re: switching between Teleoperated enabled and Wathcdog notfed
The key here is to understand that both the wait task and the other code in the .vi run in parallel.
If your code took 5 ms to run, and you put a 5 ms wait timer in, absolutely nothing regarding program timing would change. The actual code would finish running just as the wait timer expired and would start running the loop again.
If your code takes longer than 5 ms to run, say 7 ms, then your code would finish and start over again.
The "wait" function does not mean finish the code then wait. It means to wait 5ms before asking that code to run again - from the time you last asked it to start running.
|