From 3f896ebd3978c5f9ad9ba0f41a4e8469712fc9aa Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Mon, 15 Jun 2026 22:52:24 +0200 Subject: [PATCH] feat: add machine config --- csaxs_bec/device_configs/machine.yml | 45 ++++++++++++++++++++++++++++ csaxs_bec/device_configs/main.yaml | 31 ++++++++++--------- 2 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 csaxs_bec/device_configs/machine.yml diff --git a/csaxs_bec/device_configs/machine.yml b/csaxs_bec/device_configs/machine.yml new file mode 100644 index 0000000..bf8e5cf --- /dev/null +++ b/csaxs_bec/device_configs/machine.yml @@ -0,0 +1,45 @@ +curr: + description: SLS ring current + deviceClass: ophyd_devices.EpicsSignalRO + deviceConfig: + read_pv: AGEBD-PARAMS:CURRENT + auto_monitor: true + onFailure: buffer + enabled: true + readoutPriority: monitored + readOnly: true + softwareTrigger: false + +ofb: + description: SLS OFB status + deviceClass: ophyd_devices.EpicsSignalRO + deviceConfig: + read_pv: ARSGE-CECL-FOFB1:FOFB-OPERATE + auto_monitor: true + onFailure: buffer + enabled: true + readoutPriority: baseline + readOnly: true + softwareTrigger: false + +shutter: + description: X12SA shutter status + deviceClass: ophyd_devices.EpicsSignalRO + deviceConfig: + read_pv: X12SA-OP-PSYS:SH-A-OPEN + auto_monitor: true + onFailure: buffer + enabled: true + readoutPriority: baseline + readOnly: true + softwareTrigger: false + +operator: + description: SLS operator messages + deviceClass: ophyd_devices.devices.sls_devices.SLSOperatorMessages + deviceConfig: + onFailure: buffer + enabled: true + readoutPriority: on_request + readOnly: true + softwareTrigger: false diff --git a/csaxs_bec/device_configs/main.yaml b/csaxs_bec/device_configs/main.yaml index bf175f4..96799b3 100644 --- a/csaxs_bec/device_configs/main.yaml +++ b/csaxs_bec/device_configs/main.yaml @@ -1,6 +1,9 @@ # This is the main configuration file that is # commented or uncommented according to the type of experiment +machine: + - !include ./machine.yml + frontend: - !include ./bl_frontend.yaml @@ -40,8 +43,8 @@ eyex: acceleration: 0.2 user_offset_dir: 0 deviceTags: - - cSAXS - - owis_samx + - cSAXS + - owis_samx onFailure: buffer enabled: true readoutPriority: baseline @@ -58,8 +61,8 @@ eyey: acceleration: 0.2 user_offset_dir: 0 deviceTags: - - cSAXS - - owis_samx + - cSAXS + - owis_samx onFailure: buffer enabled: true readoutPriority: baseline @@ -76,8 +79,8 @@ samx: acceleration: 0.2 user_offset_dir: 0 deviceTags: - - cSAXS - - owis_samx + - cSAXS + - owis_samx onFailure: buffer enabled: true readoutPriority: baseline @@ -94,8 +97,8 @@ samy: acceleration: 0.2 user_offset_dir: 0 deviceTags: - - cSAXS - - owis_samx + - cSAXS + - owis_samx onFailure: buffer enabled: true readoutPriority: baseline @@ -121,8 +124,8 @@ smarx: axis_Id: G host: x12sa-eb-smaract-mcs-05.psi.ch limits: - - -200 - - 200 + - -200 + - 200 port: 5000 sign: 1 # precision: 3 @@ -135,7 +138,7 @@ smarx: userParameter: #init_position: 0 # bl_smar_stage to use csaxs reference method. assign number according to axis channel - bl_smar_stage: 6 + bl_smar_stage: 6 smary: description: sample position y with smaract deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor @@ -143,8 +146,8 @@ smary: axis_Id: H host: x12sa-eb-smaract-mcs-05.psi.ch limits: - - -200 - - 200 + - -200 + - 200 port: 5000 sign: 1 # precision: 3 @@ -157,4 +160,4 @@ smary: userParameter: #init_position: 0 # bl_smar_stage to use csaxs reference method. assign number according to axis channel - bl_smar_stage: 7 + bl_smar_stage: 7