fixed data collection progress bar
This commit is contained in:
+4
-1
@@ -2324,6 +2324,8 @@ object settings:
|
||||
|
||||
with pg.ProgressDialog('Progress', 0, 100) as dlg:
|
||||
dlg.setWindowModality(Qt.WindowModal)
|
||||
dlg.show()
|
||||
QApplication.processEvents()
|
||||
#dlg.setRange(0, 0)
|
||||
#dlg.setCancelButtonText("Abort Acquisition")
|
||||
#dlg.canceled.connect(self.complete_daq)
|
||||
@@ -2433,7 +2435,8 @@ object settings:
|
||||
dt._comm.gpascii.send_block('&1a;Gather.Enable=0')
|
||||
break
|
||||
#_log.info(f'progress {p}/{sp.points.shape[0]}')
|
||||
dlg.setValue(max(p,num_pts))
|
||||
dlg.setValue(min(p,num_pts))
|
||||
QApplication.processEvents()
|
||||
time.sleep(1.) #wait 1 sec instead of .1...hopefully less segmentation faults
|
||||
if not dlg.wasCanceled():
|
||||
jf.gather_upload()
|
||||
|
||||
Reference in New Issue
Block a user