11-23-2017 05:55 AM
Hello All,
I am having the few boolean buttons. when I click on the "test start button ", other buttons have to disable.
After the process ( data acquisition ) again the buttons have to come back to the original state. i have tried in few ways. post your guidelines and tips. I have attached a VI
Thanks in advance !!!
Solved! Go to Solution.
11-23-2017 08:11 AM - edited 11-23-2017 08:15 AM
ou need to use a for loop to loop through the disable property nodes of your buttons. You also need a while loop so that the application continuously runs. Finally, an event structure is the best way to control your UI.
Below is one way to implement what your mentioned.
11-23-2017 11:37 AM
@Mrtechie wrote:
I am having the few boolean buttons. when I click on the "test start button ", other buttons have to disable. After the process ( data acquisition ) again the buttons have to come back to the original state.
It is not clear (to me) what you want to happen. One possibility is you want the user to press one-of-eight buttons, have something happen and have all the buttons "not available", and then present the buttons again for another choice (and another round of "button unavailability"). This is how I read your description.
If this is what you want, here is one way to do this:
Whoa, what is going on here? What are these buttons? They appear to be Boolean controls, but where is the Mechanical Action property? I was going to say to make sure they are all Latch When Released, but when I went to check if this was so, I couldn't find this! Is this NXG, and not LabVIEW?
What I was going to say was this:
If this isn't what you want to do, please explain again, in more detail.
Bob Schor
11-23-2017 10:40 PM
Hello marcdub ,
I am having the 15.0 version. pls downgrade your version of the code and send me! your code is in 16.0 version
11-24-2017 03:57 AM
Hello bob ,
my purpose and intention was. " user click on the test start button means, data acquisition starts and complete within few seconds ( separate sub VI ).But during the data acquisition time, the user may click on some other buttons present on the screen . so that's why I have an idea to disable all other buttons except the stop button.
After the data acquisition, all the buttons will be enabled
I have used event structuring logic in my program
Got my idea ??
11-24-2017 04:07 AM
If you perform the measurement inside the event structure, the default is 'Lock front panel' while executing. If you show a text message "measuring" user will probably understand why buttons are 'locked', else it's easy enough to gather the controls refs into an array and set "Disabled and greyed out"-property.
/Y
11-24-2017 08:32 AM
Here is the LabVIEW 2015 version.