DAQ: when __set_state is called check to see if beamline is busy otherwise raise an exception

This commit is contained in:
leonarski_f committed 2025-09-19 16:18:35 +02:00
1 parent 688c635be7
commit dd310accfd
1 file changed
+3
+3
View File
@@ -1219,6 +1219,9 @@ class AareDAQ:
#
curr_state = self.__cfg.state
if not self.__cfg.state_busy:
raise Exception("Beamline should be busy")
if target == BeamlineStateEnum.Maintenance:
self.__cfg.state = BeamlineStateEnum.Maintenance
elif target != curr_state: