LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

from table to ring menu

Hi,
From a data table, how would I extract certain column(s) in table and populate them into my ring menu as items and values, since table would carry those information. And I would like to have them available for operator to make the selection from a pulldown menu from the front panel. Using LV 8.2
Thanks
dphan128
0 Kudos
Message 1 of 13
(4,484 Views)
Try This
- there is always an easy way, but it is always the hardest to find
Message 2 of 13
(4,482 Views)

Thanks Beaton.

dphan128

0 Kudos
Message 3 of 13
(4,476 Views)

Beaton,

Pardon me for bothering you again. But how would I combined two "1D-array of string" into "StringsAnd Values" property node of ring menu.

Thanks

dphan128

0 Kudos
Message 4 of 13
(4,466 Views)

Take Ur first 1D Str array as such ( assuming it for [Strings]. and convert Ur second one to Numeric U16 format ( because Ring is U16 ).

Then inside a For loop, bundle them into a cluster ( because Strings & Values [] is a cluster ), and pass the outcoming array from the For loop to the Strings & Values [] property of the Ring.

See the attached VI in LV 7.1 for more info.

- Partha ( CLD until Oct 2027 🙂 )
Message 5 of 13
(4,458 Views)

Thanks parthabe.

dphan128

0 Kudos
Message 6 of 13
(4,440 Views)

One more question! In my program I need to have two set of values for each selected item. How can it be done ? For example in my case (see attached vi), when the operator select a P/N, the catalog # should be asssigned. And also the cost type should be assigned. Another issue is the "cost type" value is the same for some items. And ring menu doesn't allow same value for different item.

I could hard code the case statement to solve that issue, but then if my table data change from time to time then it won't work. Please advise.

Thanks

dphan128

0 Kudos
Message 7 of 13
(4,416 Views)
Hello,

about Tabletoring.vi

It works well as is but i don't succeed to use it as a sub-vi, i try ref, local, global without success..........

i see how to enter but what can i use to out on my modified ring menu ?

Best regards

Sébastien




Message Edité par tinnitus le 03-06-2008 12:08 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 8 of 13
(4,175 Views)
Your question is not clear. What is the VI that you attached supposed to show? How are you trying to use the Table2Ring VI? What are you trying to do?
0 Kudos
Message 9 of 13
(4,158 Views)

i just would like to use a subvi to realize the ring menu modification depending of the first row of table
i don't have labview on the computer i wrinting now but in few words

i have a table in a programme and a menu depending of 1st row and when the row change
i would like to refresh the ring menu via sub vi, i think inputs are table +ring menu and output the modified ring menu
but i don't succeed to apply...

i hope this is less obscure


Sébastien



 


CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 10 of 13
(4,146 Views)