fixed data collection progress bar

This commit is contained in:
John Henry Beale
2026-06-15 14:45:24 +02:00
parent 9ee99a12ea
commit 1fea2ae4be
+4 -1
View File
@@ -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()