03-09-2010 01:20 PM
Solved! Go to Solution.
03-09-2010 01:34 PM
You will need to modify your code.
1. Use a single Event Structure. The one in the top While Loop will do the trick. You should have all user events in that same Event Structure (you can have more than 1).
2. Delete the bottom left Event Structure.
3. The bottom While Loop should contain a State Machine. In this particular situation, I would pass the states from the Event Structure to the State Machine using an ActionEngine (or Functional Global Variable). That way, your bottom While Loop could continue to loop on the same state and continue to refresh the image contro, capture image, etc. There are other ways, but this one is probably the simplest.
4. The top Event Strucutre would handle: control of camera functions, start recording, stop recording, save to file, stop/exit program.
R
03-10-2010 02:10 PM
Thanks for the help using the state machine works perfectly.
03-10-2010 02:30 PM