LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn off new LV7 Ring Control behavior?

I have a ring control.

While the program is running:

1... I set its strings array to { "A", "B", "C" } via property node.

2... I set its value to 1 or 2 (by selecting "B" or "C") via mouse.

3... I set its strings array to empty.

4... The control now shows a "<1>" or "<2>" in LV7, where it showed blank previously in LV6.1 and earlier.

This messes with my program, because I don't explicitly set its value to zero (it doesn't show "<0> - it shows blank).

Is there an INI setting or other setting that will turn off this unwanted behavior? Or do I have to explicitly set the value to zero each time I empty its strings?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 3
(2,600 Views)
Hi,
In LabVIEW 7, the ring controls have changed to allow string parsing and undefined values. To get the same behavior when initializing ring controls as in LabVIEW 6.1, you will need to change both the Strings and Value property node.
Please find the attached VI. It will populate the ring control with 3 elements. When you select the Boolean control, it will then set the ring to have only one blank element.

Zvezdana S.
National Instruments
0 Kudos
Message 2 of 3
(2,600 Views)


you will need to change both the Strings and Value property node.


Drat - that's the part that breaks my code. Well, it doesn't "break" , but it's now uglier than it used to be.
Thanks for the info.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 3
(2,600 Views)