LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert Menu Ring to a string

I would like to use then menu ring to provide a string which I will cocatenate into a file path name. I am not sure how I can extract the selected menu ring item from they rest of the menu ring and then convert it to astring.
0 Kudos
Message 1 of 12
(5,989 Views)
Use the property "Strings []"
0 Kudos
Message 2 of 12
(5,988 Views)
I tried that but I recieve a string with all the items in the ring menu not exclusively the one I had selected.
0 Kudos
Message 4 of 12
(5,989 Views)
Because you need select only one string from all. Use Index Array.vi where index will be Ring value.
0 Kudos
Message 5 of 12
(5,989 Views)
Property RingText.Text

Ivaylo Iltchev iltchev_i@skygate.bg
SkyGate BG Ltd http://www.skygate.bg

"Gorelick" wrote in message
news:5065000000080000006B4F0000-1023576873000@exchange.ni.com...
> I would like to use then menu ring to provide a string which I will
> cocatenate into a file path name. I am not sure how I can extract the
> selected menu ring item from they rest of the menu ring and then
> convert it to astring.
0 Kudos
Message 3 of 12
(5,989 Views)
Hi,

Try dropping a property node of the menu ring onto your diagram. Select
property "strings[]". This will give you an array of the strings in the menu
ring. The menu ring terminal itself is a U16 indicator of the item selected
in the menu ring. Use an Index array function to pull out the specific
selected menu item string from the string array.

Hope this helps,

Jim


"Gorelick" wrote in message
news:5065000000080000006B4F0000-1023576873000@exchange.ni.com...
> I would like to use then menu ring to provide a string which I will
> cocatenate into a file path name. I am not sure how I can extract the
> selected menu ring item from they rest of the menu ring and then
> convert it to astring.
0 Kudos
Message 6 of 12
(5,833 Views)
I have been using this technique for a while now, and it seemed to work. I just now noticed (to my horror) that the RingText.Text only seems to update if the front panel is visible.

This is with LV 6.1.

Can someone explain RingText.Text and how it stays in sync (or in this case, out of sync) with the integer value??
0 Kudos
Message 7 of 12
(5,990 Views)
No one has an idea?
0 Kudos
Message 8 of 12
(5,989 Views)
Hello!

After countless hours of debugging through my code, I have verified the same problem that Mike Seibel found (see earlier thread) in LabView 6.1.

In my situation, I use a property node RingText.Text in my diagram and use it to read in a value from the enum ring which is placed in one of my dialog tabs that a normal user will not go to. I noticed that when I run my VI, for the first time labview is loaded, the RingText.Text pulls the text that was assigned as default, but the second I click on my dialog tab, the RingText.Text gets updated to the correct value. It is very strange. I also have labview 7.1 and verified that the problem doesn't occur in that release. Unfortunately my company is still needs to support 6.1, so I need to fix it.

Is there any other options other than to use an index to the Strings[] property node?

THANKS!
crazycliffy
- crazycliffy
0 Kudos
Message 9 of 12
(5,926 Views)
Oops, I forgot to submit the VI for my example. If you have labview 6.1, you'll see the problem. in 7.1 you won't.
- crazycliffy
0 Kudos
Message 10 of 12
(5,923 Views)