10-20-2015 02:34 AM
Dear,
Does any know how to do it , when i use the switch the led should stay on and the switch should be grayed out
Solved! Go to Solution.
10-20-2015 02:44 AM
That VI is simple..... TOO simple.
You require a loop in the code (don't forget a time delay!). And you have to learn about properties of controls.
Did you walk through the online training material for LV or attend a class at NI? If not, please do so!
thanks,
Norbert
10-20-2015 02:49 AM
i know about the property nodes but but once someone hits the switch the switch should be grayed out and the led should stay on,
so i dont know why i should use a timed loop
10-20-2015 02:51 AM
Hi drek,
but once someone hits the switch the switch should be grayed out and the led should stay on
IF button THEN GrayOut(button) LED:=TRUE ENDIF
so i dont know why i should use a timed loop
10-20-2015 02:59 AM
Next thing to consider:
If the button is grayed out, it cannot be used anymore by the user. You should add code to re-enable the button and another code to stop the VI.
DO NOT USE RUN CONTINUOUSLY!
Norbert
10-20-2015 03:03 AM
it is just what i wanna do, gray out the switch so the user cant use the switch no more until end of program
10-20-2015 07:07 AM
Hi,
What is this application for? Good practice would be to use the Queue Handler project. It’s a steep learning curve but it’s well worth it. This way you can make use of the event handling loop to reframe from constantly polling and to easily implement your grey out. If you don't want to go down that path here is an image of a way to perform this task using a case structure and shift registers. I highly recommend you look into the examples.
10-20-2015 08:06 AM
i know how to make the property node Disabled but not how to make the bleu Disabled and grayed out function
thx very much already
10-20-2015 08:12 AM
10-20-2015 08:16 AM
You mention enum constant i guess