Changed csv plots to show instantaneous field changes

This commit is contained in:
Martin Zietz
2021-02-24 16:43:22 +01:00
parent d3b41cae7c
commit ff0f0331dc
4 changed files with 25 additions and 11 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ SMALL_BUTTON_FONT = ("Arial", 9)
class HelmholtzGUI(Tk):
# main application window, almost everything else here es called from this class
# main application window, almost everything else here is called from this class
# Inherited base class: Tk(), main application window class
def __init__(self):
Tk.__init__(self)
@@ -84,7 +84,7 @@ class TopMenu:
window.config(menu=menu) # put menu at the top of the window
ModeSelector = Menu(menu) # create a submenu object
menu.add_cascade(label="Mode", menu=ModeSelector) # add a dropdown with the submenu object
menu.add_cascade(label="Menu", menu=ModeSelector) # add a dropdown with the submenu object
# create the different options in the dropdown:
ModeSelector.add_command(label="Static Manual Input", command=lambda: self.manual_mode(window))
ModeSelector.add_command(label="Execute CSV Sequence", command=lambda: self.execute_csv_mode(window))
@@ -451,7 +451,7 @@ class ExecuteCSVMode(Frame):
self.stop_button["state"] = "normal"
self.reinit_button["state"] = "disabled"
# setup thread for running the sequence:
# setup thread for running the sequence
# More info: https://www.tutorialspoint.com/python/python_multithreading.htm
g.threadLock = threading.Lock() # create thread locking object, used to ensure all devices switch at once later
# create thread object: