06-11-2015 12:43 PM
In the attached file, there is some very wonky wiring on the left side of the block diagram. When I run the wiring through the T/F case structure and then to the main event structure, the graph does not run twice in sucession. However, with the bad wiring job it is fine.
I also would like to mention that I tried using a local variable to stop the graph and event struture at the same time, in order to end the program but that caused the graph not to run at all.
The purpose of the program is to display a live feed and save the image's important part. The junk is removed with the subsequent use of "capture background" then "grab image".
The graph is suppposed to be a live feed of the different shades of black/grey/white to ensure the full range of the camera is being utilized.
Using labview 8.6 on Windows XP.
06-11-2015 04:45 PM
You did not include any of the subVIs, so it loads as broken here.
I have no idea what wire you are trying to run "through the T/F case structure".
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-12-2015 01:35 AM
When you say "does not run twice in successsion" I assume you mean, you start it once, it works and then it doesn't for the second time. In that case my first guess is that you don't properly deinitialize the graph at some point. Are there any error messages on the second execution?
The first thing you could try is to isolate the prblem, i.e. getting rid of all the event structures and just let the graph run in a VI. Do you see the same behaviour then?
06-12-2015 08:30 AM
The camera came with its own a palette ICImageCapture. Attached should be all the sub VIs.
06-12-2015 08:42 AM
There is one more which I haven't been able to find, I'll keep looking in the meantime. The program can not properly run anyways right unless you have a camera?
I inherited this program & when looking for the sub VI, I found a manufacturer example program. the person before me copied it almost identicially. The "wonky wiring" was a wire that passed through the while loop then back along the exam same line to itself. It turns out that this wire has to pas through the loop so that when the loop breaks, the program can turn off the camera if necessary.
I understand why then if i tried to wire it through the small case selector then to the loop why I would get an error. Thanks.
06-12-2015 08:47 AM
If I get ride of the event structure the program runs fine many times in sucession. And yes that is what I mant. I try to use nodes to reintalize all at the end of my program. Is there a better way to do this?