LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quick Question about Property Node

Solved!
Go to solution

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...

0 Kudos
Message 1 of 5
(2,484 Views)
Solution
Accepted by topic author laps682

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.

Message 2 of 5
(2,475 Views)

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?

0 Kudos
Message 3 of 5
(2,471 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,452 Views)

@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.

0 Kudos
Message 5 of 5
(2,433 Views)