LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring <--> typedef enum

Hi all!

   after years of inactivity on this board.... here I come again! Smiley Wink

 

   I have some "typedef enum", and I'd like to tie them at develop time to Ring controls.  Is it possible?

 

   Thanks!

 

Graziano

0 Kudos
Message 1 of 3
(3,414 Views)

Graziano:

 

Welcome back!

 

Do you mean that you want to assign enum values to your ring items?

You can do that if you build the list for your ring in code, not in the UI editor.  In the UI editor, just put down an empty ring, then in your code, before you display the panel, build the ring list using InsertListItem(), specifying an enum as the value.  An enum is basically an int, which is the default data type for items in a ring control.  See the CVI Help topic titled Programming with ring controls for more details.

 

 

 

 

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

Thank you AI S!

   what I wanted, was to be able to link a particular typedef to a ring control, and, according to your answer, it is not possible.

 

   As far as I know, in LabView, is possible to do such a stuff, you can connect an Enum control to a type definition, right?

 

   Anyway, thanks!

 

Graziano

0 Kudos
Message 3 of 3
(3,396 Views)