LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping execution

I need to stop the execution of my program after all data is collected. this should happen after the "read " loop counts until about 80000. any help would be great.
thanks,
Dave
0 Kudos
Message 1 of 4
(2,850 Views)
First of all, the whole VI needs to be rewritten so it makes sense. It looks as if someone actually put effort into making it hard to read. The part that made me laugh is the boolean case structures with EQUAL TO comparisons inside but two constant 1.00s are wired to the inputs. That's an awful lot of stuff for something that does the same thing as a wire from the case selector.

OK, now for your answer. Your VI doesn't stop because it has those nested for loops with obscene wait times in them. I didn't look too closely at the number, but it looks like several days or weeks worth of waiting.

Also, the BIG while loop is gated by comparison of its index to a constant. If you want a while loop, gate it with something variable or user-defined. What
you've got there is acting like a FOR loop.

Seek professional help!

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 4
(2,850 Views)
Greg McKaskle was looking for VIs to tear apart and put back together again at NI Week in his posting here. This VI looks like an excellent candidate.
0 Kudos
Message 3 of 4
(2,850 Views)
Good call Dennis!
0 Kudos
Message 4 of 4
(2,850 Views)