LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Inactive controls while function is running.

Hi, I've got a little problem.

 

I'd like to run a function with a controlButton "start", and stop the function with a controlButton "Stop". But While the function is running, I cannot click on any buttons of my panel.

 

Do you know how we can do this?

 

Thanks a lot.

 

Johan

0 Kudos
Message 1 of 5
(3,016 Views)

do you mean you cannot click because the control is dimmed or an indicator, or do you mean that you can click but there is no response?

0 Kudos
Message 2 of 5
(3,014 Views)

I have no response. I'm trying to launch my function as a thread, but I don't feel comfortable with it.

 

I think it's a good possibility.

0 Kudos
Message 3 of 5
(3,011 Views)

Did you call RunUserInterface also in the new thread? You might want to have a look at the example MultiPanel that ships with CVI which demonstrates a second panel in its own thread.

0 Kudos
Message 4 of 5
(3,007 Views)

Finally, using a thread for my function corrects my problem, all buttons are available now.

 

Thanks a lot for your fast answers, that why I didn't hesitate to send a post on this Forum. 🙂

0 Kudos
Message 5 of 5
(3,004 Views)