06-07-2011 12:02 PM
When I highlight execution, the program runs fine, but when I run the program normally, nothing happens. (I believe the program is stuck at the initialize cam vi). If someone could help me out, I'd be very thankful
06-07-2011 12:40 PM - edited 06-07-2011 12:44 PM
You marked that thread as solved, implying you fixed the problem.
Code comments:
06-07-2011 12:56 PM
Correct, the previous problem was solved. However, this problem operates on different logic.
Code comments:
Thank you for the help
06-07-2011 12:58 PM
OK, different logic, but same problem. If it works in highlight mode, but not in normal mode, then clearly it's a timing problem. In other words, something is happening too fast, such as you trying to get data before it's ready, or trying to configure something before the camera is ready. Sprinkle some waits here and there to see where the timing issue is. This is basic troubleshooting.
06-07-2011 01:30 PM - edited 06-07-2011 01:30 PM
The first troubleshooting technique I did was to add several "waits" throughout the program, particularily with the loops. I learned the problem was actually with the hardware itself and the camera mode. The camera must take an empty frame before it can store the image, thus the for loop needed to be replaced with a while loop.
However, after fixing the program using boolean logic, 2 of the buttons disappear on my front panel during use (which I will have to further troubleshoot). Thank you!