skullandbones / uTmax

uTmax Linux GUI program for the uTracer3 Thermionic Valve Tester
4 stars 3 forks source link

Add functions to manage start and stop of the protocol engine plus operation requests #32

Closed skullandbones closed 6 years ago

skullandbones commented 6 years ago

The original code uses a timer which runs every 500ms and this timer manages the state machine which uses the serial protocol to control the uTracer 3.

Debug was added to the protocol state machine which revealed that the timer continues to fire after the state machine reaches the full idle state. This is inefficient so add functions to control the creation and destruction of the timer object. This means the timer object only exists when the protocol state machine is running.

In addition, focus the various operation requests through a single function so that the GUI requests can be isolated from the protocol state machine.