diff options
Diffstat (limited to 'eitControl.py')
-rw-r--r-- | eitControl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eitControl.py b/eitControl.py index 73f83a4..d0e1c2e 100644 --- a/eitControl.py +++ b/eitControl.py @@ -270,6 +270,7 @@ class Experiment: self.dataPlot.setLabel('bottom', 'Frequency offset', units='Hz') self.dataPlot.setLabel('left', 'Signal', units='V') + self.data['newData'] = True stop = datetime.now() runTime = (stop-start).seconds + float((stop-start).microseconds)/1000000 # print("onTic DAQ took %s seconds." % (runTime) ) @@ -278,6 +279,11 @@ class Experiment: self.dataPlot.autoRange() def updatePlot(self,swp=None): + if 'newData' in self.data and self.data['newData']: + self.data['newData'] = False + else: + return + start = datetime.now() x = self.data['x'] for name in self.channelsNames2plot: |