Skip to content

Commit

Permalink
add autosave to example IOC
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 13, 2024
1 parent 02c4d2c commit ac44a7c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ibek-support
59 changes: 50 additions & 9 deletions services/bl01t-ea-ioc-02/config/ioc.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand All @@ -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
Expand All @@ -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

0 comments on commit ac44a7c

Please sign in to comment.