From 02ae04f10451b91ab711c0bd1569ed80f82d98d3 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 14 Jun 2021 22:57:04 -0400 Subject: move start of gui sweeper close to the end of initialiazation --- eitControl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eitControl.py b/eitControl.py index 22c4534..40fa25f 100644 --- a/eitControl.py +++ b/eitControl.py @@ -36,7 +36,6 @@ class Experiment: self.clearData() self.guiSetup(root) self.guiSweeper = Sweeper(self.root, Npoints=10, SweepTime=1, onTicCallbacks=[self.updatePlot]) - self.guiSweeper.cmdStart() self.hardware = {} self.sweeper = Sweeper(self.root, Npoints=500, SweepTime=10, onTicCallbacks=[self.onTic]) self.funcGen = TriangleGen(0, 5, sweeper = self.sweeper) @@ -47,6 +46,9 @@ class Experiment: self.rfGenFunc = RampGen(fCent-fSpan/2, fCent+fSpan/2, sweeper = self.sweeper) self.hardwareSetup(args) + # now we ready to do gui + self.guiSweeper.cmdStart() + def hardwareSetup(self,args): if args.test: -- cgit v1.2.3