07-18-2018 01:18 PM
Hello so I understand that property nodes allows one to edit certain properties of a specific function. If you look at my image, in my example I have a text ring control not connected to anything but my code runs just as expected. My question is, is there anything wrong with having the "text ring" block just standing on it's own? It looks unsightly and feels like it should just not be on its own. I use property nodes to communicate its information to other blocks so I don't see why it should even exist other than the obvious fact that if it didn't than the property nodes wouldn't either...
Solved! Go to Solution.
07-18-2018 01:45 PM
There is nothing wrong with having unused terminals. It is rare. The most likely unused terminal would be the one for a tab control.
I do see you have a potential race condition in that the value selected from the ring may not match what you want since the RingText.Text property node is probably read read the array of strings is written to the Strings[] property node.
07-18-2018 01:55 PM
Ok, thank you! Yes I also noticed this race condition but through highlight execution I see that the string[] property node reads first so there is no problem. I have no idea if this was some intended design or mere coincidence; do you recommend I use a flat sequence?
07-18-2018 02:09 PM
The way you are using that Text Ring, it really should be a Combobox. A Combobox has a string data type, so you don't have to use the Text property.
07-18-2018 03:17 PM
@laps682 wrote:
Ok, thank you! Yes I also noticed this race condition but through highlight execution I see that the string[] property node reads first so there is no problem. I have no idea if this was some intended design or mere coincidence; do you recommend I use a flat sequence?
If there's a race condition, there's no guarantee that the racing functions will always execute in the same order, or that it'll always match what you see with highlight execution enabled. Instead of a sequence, you can enforce execution order by wiring up the error inputs and outputs in series.