diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index d77cb45..6bd2a5c 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -342,16 +342,17 @@ if __name__ == "__main__": # pragma: no cover timepix.on_connected() print("Timepix connected and initialized.") - timepix.stage() - print("Timepix staged.") - timepix.pre_scan() - print("Timepix pre-scan completed.") timepix.scan_info.msg.scan_parameters.update( { "exp_time": 0.2, # Set exposure time to 0.2 seconds for testing "frames_per_trigger": 10, # Set frames per trigger to 10 for testing } ) + timepix.stage() + print("Timepix staged.") + timepix.pre_scan() + print("Timepix pre-scan completed.") + msgs = [] for ii in range(5): print(f"Starting scan {ii + 1}...; sleeping for 1s before each trigger before start")