LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

in labwindows,i like to stop the execution of the program.

You can use a button to start and then stop the scans. The easiest way to do this is to use a Toggle Button rather than a Command Button. In the callback for the toggle button, GetCtrlVal() and start the scan if the value is TRUE. The toggle button doesn't have to do anything if the button is FALSE(==0). In the function doing the scans, periodically call ProcessSystemEvents() and GetCtrlVal() for the toggle button. Break the scan loop if the toggle button is TRUE.
See my example in the attached ZIP file.
Message 11 of 12
(792 Views)
Thanks for your help... I owe you big time.
0 Kudos
Message 12 of 12
(792 Views)