05-14-2019 04:16 AM
hi ,
please help me . i want to stop the execution of the while loop when i press the " close button ".
05-14-2019 04:31 AM
Use an event handler in the while loop?
05-14-2019 04:36 AM
If you mean the Windows' close button, you need to catch the VI's Close? event. Set disgard? to true, so the VI get a chance to finish normally.
You could put the normal execution stuff in the Time Out event of the event structure. This isn't a very durable solution, but it works in simple situations.