LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array initialization problem

Solved!
Go to solution

GerdW a écrit :

Hi Pavel,

 

without error chain it may work or it may fail - it's a typical race condition!

 

By now you should have learned to THINK DATAFLOW!


Hi GerdW,

 

It seems that Local Variable isn't concerned by "race condition". Am I right ?

0 Kudos
Message 11 of 12
(733 Views)

It isn't concerned but that doesn't mean it can't cause them!

 

In this case I would either put a faux structure around the Local write and connect an output wire to the loop or go back to a property node and wire up the error cluster.

 

Using a local variable like this is a typical race condition problem.

 

Pseudoqquote:

If you don't work toward removing race conditions you'll regret it.  Maybe not today, maybe not tomorrow but soon and for the rest of your life.

0 Kudos
Message 12 of 12
(715 Views)