Added gas detector minimum value condition for scanner
This commit is contained in:
@ -103,7 +103,10 @@ daq = SFAcquisition(
|
|||||||
|
|
||||||
# scan = Scanner(scan_info_dir=f"/sf/{instrument}/data/{pgroup}/res/scan_info", default_acquisitions=[daq], condition=None)
|
# scan = Scanner(scan_info_dir=f"/sf/{instrument}/data/{pgroup}/res/scan_info", default_acquisitions=[daq], condition=None)
|
||||||
|
|
||||||
scan = Scanner(default_acquisitions=[daq])
|
# Run the scan only when gas monitor value larger than 10uJ (and smaller than 2000uJ):
|
||||||
|
check_intensity_gas_monitor = PVCondition("SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-US", vmin=10, vmax=2000, wait_time=0.5, required_fraction=0.8)
|
||||||
|
|
||||||
|
scan = Scanner(default_acquisitions=[daq],condition = check_intensity_gas_monitor)
|
||||||
gui = GUI(scan, show_goto=True, show_spec=True)
|
gui = GUI(scan, show_goto=True, show_spec=True)
|
||||||
|
|
||||||
logger.info(f"Running at {instrument} with pgroup {pgroup}.")
|
logger.info(f"Running at {instrument} with pgroup {pgroup}.")
|
||||||
|
Reference in New Issue
Block a user