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.
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.
07-04-2015 10:54 AM
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? Thanks
Solved! Go to Solution.
07-04-2015 11:09 AM
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.
07-04-2015 11:40 AM
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.
07-04-2015 12:54 PM
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.
07-05-2015 04:11 PM
@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.
If you want help, please attach your actual VI. We cannot debug pictures.
07-05-2015 04:49 PM
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 😕
07-05-2015 05:28 PM
Here is a version using radio button, event structure, and an array of booleans. It does not include the Inicio function.
Lynn
07-05-2015 05:32 PM
Yes, but you're using buttons, Is it possible to do with a Combobox? the same thing, but with Combobox?
07-05-2015 05:35 PM
It doesn't appear that you've tried any of the tips given to you.
See attached.
07-05-2015 05:36 PM
Thanks! 😄 It works for me