From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Discusiones sobre Productos NI

cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Enum

¡Resuelto!
Ir a solución

Hola

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

0 kudos
Mensaje 1 de 14
2.743 Vistas

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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 2 de 14
2.736 Vistas

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
Mensaje 3 de 14
2.730 Vistas

Programaticamente no, pero el Ring control sí.

=======
My Channel: https://www.youtube.com/@LV_Lab

0 kudos
Mensaje 4 de 14
2.725 Vistas

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
Mensaje 5 de 14
2.678 Vistas
Solución
Aceptado por 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 6 de 14
2.668 Vistas

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

Thank you so much for your help!

Best regards

0 kudos
Mensaje 7 de 14
2.632 Vistas

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
Mensaje 8 de 14
2.609 Vistas

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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 9 de 14
2.602 Vistas

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

 

0 kudos
Mensaje 10 de 14
2.387 Vistas