LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Menu ring control updating failure

I have a menu ring control property node with the two properties: strings[](write) and value(read). This property node is located inside a while loop, that runs forever. When the number of strings in the array, and hence the number of choices in the menu ring, decreases at execution time, the value output of the property node fails to change accordingly. For instance, when hilightnin the execution i can se, that there is only one string in the array, and there is only one choice in the ring on the front panel, but the value returned by the node is "1". Is it not supposed to be zero? Then when I select the menu item on the front panel(out of a choice of 1), then the value output changes to zero. I am using labview eval 6.01. Is this
simply a bug?
To see the problem yourself open the attached VI library, open "styring af boks udv?lgelse", write the path for the included text file "BoksInfo.txt" in the "sti til fil"-control, run the VI, select "284" in the left menu ring ("boks"), go to the diagram and highlight the execution. The problem is at the "kanal" property node, where value returns one even though item zero must be selected, since it is the only one there. Then try reselecting "A" in the kanal menu ring, and notice how that changes things.
Download All
0 Kudos
Message 1 of 2
(2,458 Views)
This is something that happens with all of the "drop down" box style of controls and multiline text controls as well. The best that I have been able to do is to set the Value programatically. Then you can keep the selected line visible.

Rob
0 Kudos
Message 2 of 2
(2,458 Views)