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

Combobox data question

¡Resuelto!
Ir a solución

HI everyone, I'm trying to use COMBOBOX to select what lamp ON, but I want to do it just once, if I try to ON again the same LAMP Labview will show an error message, Is it possible? Thanksfocos.PNG

0 kudos
Mensaje 1 de 22
5.986 Vistas

Keep track of how many times the selection has been made using a shift register.  If it is chosen more than the number of times you desired, then show the error message.

 

You may want to use an Event structure to determine when the button has been pressed.

0 kudos
Mensaje 2 de 22
5.964 Vistas

Yes, I'm trying to use it, but I'm new in it 😕 For a lamp get ON I need to know the letter that my COMBOBOX send, and push INICIO, I want to use each lamp once.

Capture.PNG

0 kudos
Mensaje 3 de 22
5.942 Vistas

I'd agree you want to look at the event structure.  That way, you're checking once for each value change rather than continuously polling as you're doing now.

 

That would allow you to carry a three element array, or cluster, on a shift register.  Initialize it all to false.  As each filter gets triggered, set that value to true.  That way, you could see if you've triggered it before rather quickly.  If you only want each to be done once, you could do an AND of the array as a stop condition.

0 kudos
Mensaje 4 de 22
5.903 Vistas

@cesarjr.1991 wrote:

Yes, I'm trying to use it, but I'm new in it 😕 For a lamp get ON I need to know the letter that my COMBOBOX send, and push INICIO, I want to use each lamp once.

Capture.PNG


  • The shift register belongs in the outermost loop. Keep an array of three booleans.
  • Your FOR loop does not do anything useful, delete it.
  • What determines your while loop rate? Seems to be spinning loke crazy. Use an event structure as suggested.
  • Why is it a combobox? Why not use a ring, enum, or radiobutton control?
  • Keep all controls on the main loop diagram, not inside other structures.
  • ...

 

If you want help, please attach your actual VI. We cannot debug pictures.

0 kudos
Mensaje 5 de 22
5.658 Vistas

Hi, this is my Vi, where I'm trying to do it, If I try to ON a lamp twice the program will show me a message, but I don't know how to do it 😕

0 kudos
Mensaje 6 de 22
5.641 Vistas

Here is a version using radio button, event structure, and an array of booleans.  It does not include the Inicio function.

 

Lynn

0 kudos
Mensaje 7 de 22
5.617 Vistas

Yes, but you're using buttons, Is it possible to do with a Combobox? the same thing, but with Combobox?

0 kudos
Mensaje 8 de 22
5.600 Vistas
Solución
Aceptado por el autor del tema cesarjr.1991

It doesn't appear that you've tried any of the tips given to you.

 

See attached.

0 kudos
Mensaje 9 de 22
5.595 Vistas

Thanks! 😄 It works for me 

0 kudos
Mensaje 10 de 22
5.590 Vistas