05-08-2019 02:38 AM - edited 05-08-2019 03:01 AM
Hi,
Im beginner and still learn how to use LabView to program. Would any know how to disable the knob after click a button? And also enable back knob after re-click?
Solved! Go to Solution.
05-08-2019 02:42 AM
Hi bsang,
you should mark your thread as "LabVIEW NXG" as has been said in those pinned messages in the header of the LabVIEW board!
how to disable the knob after click a button?
You need to OBEY the DATAFLOW also in LabVIEW NXG: right now you disable the knob in parallel to your loop polling the button - but not "afterwards"…
And also enable back knob after re-click?
Set the button to enabled instead of disabled: use a shift register to store the current condition (like a boolean flag) and switch/invert that condition with each click…
(I guess NXG also allows to use an event structure!?)
05-08-2019 02:53 AM
Hi GerdW,
Thank you for reply my question. I still get no idea the meaning. Would you might to show me the step?
05-08-2019
02:58 AM
- last edited on
04-29-2025
03:03 PM
by
Content Cleaner
Hi bsang,
I don't have NXG installed, so I cannot open your GVI.
You find an explanation of DATAFLOW in the LabVIEW help!
05-08-2019 03:55 AM
Hi GerdW,
Oh i see. Thank You for the reference.
As you given DataFlow link, I might not clear understand about Data Flow. Would you might provide example to show how to disable knob after click a button?
Thanks.
05-08-2019 04:01 AM
05-08-2019 04:36 AM
Hi GerdW,
Thank you for the solution. I get the idea how to do. Btw the loop might a bit slow response after click Stop button. How can speed up the process time?
Thanks
05-08-2019 05:53 AM
05-08-2019 11:38 AM
@KnightBS wrote:
Hi GerdW,
Thank you for the solution. I get the idea how to do. Btw the loop might a bit slow response after click Stop button. How can speed up the process time?
You only need one while loop and no case structure.
05-08-2019 07:53 PM
Hi GerdW,
Thank you for advice and solution. I am glad to learn from you.
Thank You. Have a nice day.