Recently, I study the design pattern.
I used all events in one event structure.
Usually, "Go button value change event" and "Time-out" need to acquire some data for a long time via RS-232.
To have responsible UI event, therefore, I would like to put "Time-out" outside event structure using another while loop in parallel loop scheme.
My question is how to deactivate "Time-out" when some UI event is fired and activate Time-out in case of completing UI event without any confliction of RS-232 communication.
In addtion, some variable such as VISA port should be updated in outside event structure.