Quote:
Originally Posted by bprobotics
Alan, I switched to doing the vision processing on the dashboard. In order to get just one image, I set it so that the Loop Iteration > 1, sends true to the loop condition which is stop if true. If the iteration < 1, it sends false to the loop condition. Unless I am mistaken, this should only analyze one image every time the loop runs, correct?
|
You're really trying hard to do things in a way that the provided code isn't set up to work. That loop is intended to start when the program begins and continue to run until the program is shut down. If you stop it, what's going to start it up again? I urge you modify the example code as little as possible.
Since you've abandoned the easily-controlled cRIO code, the small modification I would suggest is to surround the actual vision processing functions with a Case block that 1) runs when a global boolean is set True, and 2) sets that boolean False when it runs.