05-08-2015 10:46 AM - edited 05-08-2015 10:47 AM
In fact, I want add a rest button for my program, however, when I add the event structure for the value change of the reset button, the program frozen. Anyone can help ?
05-08-2015 10:53 AM - edited 05-08-2015 11:00 AM
Never use 2 event structures in a program unless you really really know what you're doing. You should have a look at the Producer/Consumer architecture.
EDIT: have a look at this document, and this page.
Ben64
05-08-2015 10:59 AM
thanks, I see.
so how to realize my "reset" function ?
05-08-2015 11:01 AM
05-08-2015 11:03 AM
The reason your program freezes is that both event structures are in the same loop.
When your "Reset: Value Change" event fires the bottom event structure exits but the loop does not iterate until the top event structue also exits.
The easiest solution would be to handle both events from the same event structure.
05-08-2015 11:26 AM
I put them into one event, still not working properly
05-08-2015 12:08 PM
Duplicate thread. Please keep all the discussions in a single thread. I helps prevent fragmented discussions.