LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Winning the race --- setting graph properties

I recently had a real headbanger of a bug caused by a race condition using the graph property node. 

Trying to name the plots, I wired the "active plot" property to a for loop 'i' and the tunneled array of string names to the "plot name" property.  Well, guess what. I found out?  

If the "active plot" property is below the name property, I appears that there is a race condition and the result is garbage.  Swaping their  relative positions in the property node fixed the problem!

It seems like the properties are read in order from top to bottom. 

Is this behavior I can rely on?????

Thanks
LV 8.6 on Windoze XP
0 Kudos
Message 1 of 2
(2,300 Views)
That is expected and documented bahavior. the on-line help for a property node states: "The node executes each property in order from top to bottom."
0 Kudos
Message 2 of 2
(2,295 Views)