forked from zietzm/Helmholtz_Test_Bench
Release V1.1 added
This commit is contained in:
Binary file not shown.
Binary file not shown.
+4
-3
@@ -761,12 +761,14 @@ class Configuration(Frame):
|
||||
config.CONFIG_FILE = filename # set global config file to the new file
|
||||
self.write_values() # write current entry field values to the config object
|
||||
config.write_config_to_file(config.CONFIG_OBJECT) # write contents of config object to file
|
||||
ui_print("\nReinitializing devices...")
|
||||
func.setup_all() # reinitialize devices and program with new values
|
||||
self.update_fields() # update entry fields to show values as they are in the config
|
||||
|
||||
def save_config(self): # same as save_config_as() but with the current config file
|
||||
self.write_values() # write current entry field values to the config object
|
||||
config.write_config_to_file(config.CONFIG_OBJECT) # write contents of config object to file
|
||||
ui_print("\nReinitializing devices...")
|
||||
func.setup_all() # reinitialize devices and program with new values
|
||||
self.update_fields() # update entry fields to show values as they are in the config
|
||||
|
||||
@@ -897,13 +899,13 @@ class ConfigureLogging(Frame):
|
||||
self.checkboxes.append(checkbox) # add created checkbox to list of all checkboxes
|
||||
row += 1
|
||||
|
||||
# self.controller.bind('<Escape>', self.escape_press) ToDo: implement escape button press event
|
||||
# self.controller.bind('<Escape>', self.escape_press) ToDo: implement escape button press event to power down
|
||||
|
||||
def page_switch(self): # function that is called when switching to this window
|
||||
# every class in the UI needs this, even if it doesn't do anything
|
||||
pass
|
||||
|
||||
# def escape_press(self, event): ToDo: implement escape button press event
|
||||
# def escape_press(self, event): ToDo: implement escape button press event to power down
|
||||
# stop_logging()
|
||||
|
||||
def start_logging(self): # start logging data (called by button)
|
||||
@@ -1097,7 +1099,6 @@ class StatusDisplay(Frame):
|
||||
self.label_dict["Trgt. Field Raw:"][i].set("%0.3f \u03BCT" % (axis.target_field_comp * 1e6))
|
||||
self.label_dict["Target Current:"][i].set("%0.3f A" % axis.target_current)
|
||||
self.label_dict["Inverted:"][i].set(axis.polarity_switched)
|
||||
print(axis.name, axis.polarity_switched)
|
||||
i += 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user