LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Many Flat_sequences in one While loop


Anil@8899 wrote:

 

I have removed the Flat sequence and avoided some local variable ,

and now it is working .

 


That might not be enough, because even if it is currently "working", there might still be race condition that can break it at any time in the future (e.g. after building an executable, after a LabVIEW update, or on a different computer). Looking at the original code picture, there are so many things wrong that a major overhaul seems more logical.

0 Kudos
Message 11 of 13
(250 Views)

This part


and avoided some local variable ,

 


is troubling. Local variables are common sources of race conditions, and race conditions have a tendency to rear their ugly heads in the future. I wouldn't be at all surprised if you were coming back at some point asking why your program was working but now it's not. If you would post the code that you have I expect that you will get some good advice on how to further improve your program.

 

0 Kudos
Message 12 of 13
(245 Views)

Anil@8899 wrote:

Thanks all ,

I have removed the Flat sequence and avoided some local variable ,

and now it is working .


(Your first!) kudo was for keeping us informed 😊...

 

I agree that although it's working, it might not (yet) be correct.

0 Kudos
Message 13 of 13
(235 Views)