Discusiones sobre Productos NI

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum

Solved!
Go to solution

Hola

Es posible cambiar los valores del enum? Es decir, cuando defines el item que puedas asignarle tu el valor que quieres

0 Kudos
Message 1 of 14
(409 Views)
Highlighted

Hi 99,

 

you already know this is an English speaking forum!?

 

Is it possible to change the values of the enum? That is, when you define the item you can assign the value you want to

In an enum the values are simply ordered, the "value" is the item text. The "number" is just the index inside the enum item list.

When you want to use arbitrary values associated with texts then you should use a ring instead…

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 14
(402 Views)
Highlighted

LabVIEW99,

 

If you want to post a message in Spanish, go to the Spanish forum that is under Regional Communities.  I know I have mentioned this to you before.

 

Your message thread as been moved there.

 

If you are able to speak English, than go ahead and post in the English-speaking LabVIEW forum.  There are far more English speakers so you are more likely to get help quicker.

0 Kudos
Message 3 of 14
(396 Views)
Highlighted

Programaticamente no, pero el Ring control sí.

0 Kudos
Message 4 of 14
(391 Views)
Highlighted

I´m so sorry,

But if I use ring control I have the same problem. Because I want for exam`ple to put one name to the item and assign the number 8. I mean, for example, RESET and in the column of values put the number 8 no number 0. I hope I have explained myself better.

0 Kudos
Message 5 of 14
(344 Views)
Highlighted
Solution
Accepted by topic author labview99

Hi 99,

 


@labview99 wrote:

I mean, for example, RESET and in the column of values put the number 8 no number 0.


what's your problem?

check.png

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 6 of 14
(334 Views)
Highlighted

I wasn´t disabling the option you have marked,sorry.

Thank you so much for your help!

Best regards

0 Kudos
Message 7 of 14
(298 Views)
Highlighted

I have found one problem. When I connect the ring to the case structure I can´t see all the casesMneu ring.PNG

0 Kudos
Message 8 of 14
(275 Views)
Highlighted

Hi 99,

 

a ring is not an enum!

You need to define the cases on your own because the ring items are unknow at edit time - the ring values can be changed at runtime as has been requested by you…

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 9 of 14
(268 Views)
Highlighted

I have done what you said but I continue without seeing all the cases. I attach you the program.

 

0 Kudos
Message 10 of 14
(53 Views)