diff --git a/Opt_Moto.py b/Opt_Moto.py
index 33bf8bc..6dbdb44 100644
--- a/Opt_Moto.py
+++ b/Opt_Moto.py
@@ -518,7 +518,7 @@ def txt_to_xml(self):
self.experiment_dateTime.text = str(self.input_dateTime.get())
self.experiment_duration = tree.find("./metadata/experiment/duration")
- self.experiment_duration.text = str(self.testtimebox.get())
+ self.experiment_duration.text = str(self.durationtime())
self.experiment_description = tree.find("./metadata/experiment/description")
self.experiment_description.text = str(self.input_ExperimentDescription.get())
@@ -540,7 +540,7 @@ def txt_to_xml(self):
type.text = "OptomotoR"
else:
type = et.SubElement(period, "type")
- type.text = "OptomotoL"
+ type.text = "OptomotorL"
duration = et.SubElement(period, "duration")
duration.text = str(self.periodbox.get())
outcome = et.SubElement(period, "outcome")
@@ -571,6 +571,11 @@ def test_time(self):
self.testtime += 1
return self.testtime
+ def duration_time(self):
+ self.durationtime =60 * int(self.testtimebox.get()) # Multiply the total duration with 60 to get seconds.
+ # This data is later on added to the xml file
+ return self.durationtime
+
def give_curr_count(self):
status, curr_count, curr_index = ul.get_status(
self.board_num, FunctionType.AOFUNCTION)
diff --git a/Optomotorics_blueprint.xml b/Optomotorics_blueprint.xml
index 45e3dd5..8c28d3c 100644
--- a/Optomotorics_blueprint.xml
+++ b/Optomotorics_blueprint.xml
@@ -22,7 +22,7 @@
- motor
+ Joystick
@@ -36,12 +36,12 @@
- fly
+ j_pos
float32
arb_unit
- arena
+ a_pos
float32
arb_unit