LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

discardctrl - interruption

Hello,

 

I would like to know how I can discard a control button.

 

My application generates an alternative voltage when I select a button(button OK). This voltage is generated during 2 hours.

I've created a second button (STOP) to stop generating this voltage. Unfortunately I can't select this button when my code is executing. (it's dimmed)

 

In fact, I just want to code an interruption i my programe but I don't know how to do ...

 

Please help me 😃

 

Best regards

Julien

0 Kudos
Message 1 of 2
(2,679 Views)

Hello Julien,

 

This is one of the most frequent questions concerning the UI of CVI - but fortunately is easy to resolve... Use ProcessSystemEvents () (after reading the help, of course) to allow for processing user events. You might also need to use the function SetCtrlAttribute (panel_handle, control_id, ATTR_DIMMED, ..) to dim/undim your control.

0 Kudos
Message 2 of 2
(2,673 Views)