From ac44a7c04a11dc2cca4ead296e873917fe3cebfb Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 13 Dec 2024 09:44:32 +0000 Subject: [PATCH] add autosave to example IOC --- ibek-support | 2 +- services/bl01t-ea-ioc-02/config/ioc.yaml | 59 ++++++++++++++++++++---- 2 files changed, 51 insertions(+), 10 deletions(-) diff --git a/ibek-support b/ibek-support index 7e13c4a..51a66ec 160000 --- a/ibek-support +++ b/ibek-support @@ -1 +1 @@ -Subproject commit 7e13c4a60112eedda400e7183f2a2b9cc39b1718 +Subproject commit 51a66ec32d70f6abb852f1f62c8db4f6212703ce diff --git a/services/bl01t-ea-ioc-02/config/ioc.yaml b/services/bl01t-ea-ioc-02/config/ioc.yaml index c248b5d..a6885f9 100644 --- a/services/bl01t-ea-ioc-02/config/ioc.yaml +++ b/services/bl01t-ea-ioc-02/config/ioc.yaml @@ -1,13 +1,13 @@ -# yaml-language-server: $schema=https://github.com/epics-containers/ioc-adsimdetector/releases/download/2024.8.2/ibek.ioc.schema.json +# yaml-language-server: $schema=/tmp/ioc.schema4.json ioc_name: "{{ _global.get_env('IOC_NAME') }}" description: Example simulated camera entities: - - type: epics.EpicsEnvSet - name: EPICS_TZ - value: GMT0BST + - type: autosave.Autosave + settings_req_period: 10 + P: "BL01T-EA-TST-02:" - type: devIocStats.iocAdminSoft IOC: "{{ ioc_name | upper }}" @@ -16,6 +16,31 @@ entities: PORT: DET.DET P: BL01T-EA-TST-02 R: ":DET:" + # DATATYPE:0 = Int8 - TODO add an enum to the support yaml + DATATYPE: 0 + WIDTH: 1024 + HEIGHT: 1024 + + - type: epics.PostStartupCommand + command: | + dbpf BL01T-EA-TST-02:DET:AcquireTime 0.1 + dbpf BL01T-EA-TST-02:ARR:EnableCallbacks 1 + dbpf BL01T-EA-TST-02:PROC:EnableCallbacks 1 + dbpf BL01T-EA-TST-02:ROI:EnableCallbacks 1 + dbpf BL01T-EA-TST-02:PVA:EnableCallbacks 1 + dbpf BL01T-EA-TST-02:DET:Acquire 1 + + - type: ADCore.NDROI + PORT: DET.ROI + P: BL01T-EA-TST-02 + R: ":ROI:" + NDARRAY_PORT: DET.DET + + - type: ADCore.NDProcess + PORT: DET.PROC + P: BL01T-EA-TST-02 + R: ":PROC:" + NDARRAY_PORT: DET.ROI - type: ADCore.NDPvaPlugin PORT: DET.PVA @@ -28,12 +53,28 @@ entities: PORT: DET.ARR P: BL01T-EA-TST-02 R: ":ARR:" - NDARRAY_PORT: DET.DET + NDARRAY_PORT: DET.PROC TYPE: Int8 NELEMENTS: 1048576 FTVL: CHAR - - type: epics.PostStartupCommand - command: | - dbpf BL01T-EA-TST-02:ARR:EnableCallbacks 1 - dbpf BL01T-EA-TST-02:DET:Acquire 1 + - type: ADCore.NDStats + PORT: DET.STAT + P: BL01T-EA-TST-02 + R: ":STAT:" + NDARRAY_PORT: DET.DET + XSIZE: 1024 + YSIZE: 1024 + HIST_SIZE: 20 + + - type: ADCore.NDFileHDF5 + PORT: DET.HDF + P: BL01T-EA-TST-02 + R: ":HDF:" + NDARRAY_PORT: DET.PROC + + - type: ADCore.NDFileTIFF + PORT: DET.TIFF + P: BL01T-EA-TST-02 + R: ":TIFF:" + NDARRAY_PORT: DET.PROC