LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Graph Troubles

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.

0 Kudos
Message 1 of 6
(3,745 Views)

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".

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 6
(3,706 Views)

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?



Remember Cunningham's Law
0 Kudos
Message 3 of 6
(3,686 Views)

The camera came with its own a palette ICImageCapture. Attached should be all the sub VIs.

Download All
0 Kudos
Message 4 of 6
(3,661 Views)

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.

0 Kudos
Message 5 of 6
(3,655 Views)

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?

0 Kudos
Message 6 of 6
(3,650 Views)