diff --git a/iocs/bl01t-ea-ioc-02/config/extra.db b/iocs/bl01t-ea-ioc-02/config/extra.db new file mode 100644 index 0000000..94f49c4 --- /dev/null +++ b/iocs/bl01t-ea-ioc-02/config/extra.db @@ -0,0 +1,6 @@ +record(ai, "BL01T-EA-IOC-02:TEST") { + field(DESC, "Test record") + field(DTYP, "Soft Channel") + field(SCAN, "Passive") + field(VAL, "1") +} \ No newline at end of file diff --git a/iocs/bl01t-ea-ioc-02/config/ioc.subst b/iocs/bl01t-ea-ioc-02/config/ioc.subst new file mode 100644 index 0000000..ad88488 --- /dev/null +++ b/iocs/bl01t-ea-ioc-02/config/ioc.subst @@ -0,0 +1,27 @@ +############################################################################# +# DB substitution file generated by http://github.com/epics-containers/ibek # +############################################################################# + +file "$(ADSIMDETECTOR)/db/simDetector.template" { +pattern + { "P", "R", "PORT", "TIMEOUT", "ADDR" } + { "BL01T-EA-TST-02", ":DET:", "DET.DET", "1", "0" } +} + +file "$(ADCORE)/db/NDPva.template" { +pattern + { "NDARRAY_PORT", "ADDR", "SCANRATE", "NDARRAY_ADDR", "ENABLED", "P", "R", "TIMEOUT", "PORT" } + { "DET.DET", "0", "I/O Intr", "0", "0", "BL01T-EA-TST-02", ":PVA:", "1", "DET.PVA" } +} + +file "simDetector.pvi.template" { +pattern + { "prefix" } + { "BL01T-EA-TST-02:DET:" } +} + +file "NDPluginPva.pvi.template" { +pattern + { "prefix" } + { "BL01T-EA-TST-02:PVA:" } +} diff --git a/iocs/bl01t-ea-ioc-02/config/ioc.yaml b/iocs/bl01t-ea-ioc-02/config/ioc.yaml new file mode 100644 index 0000000..22365aa --- /dev/null +++ b/iocs/bl01t-ea-ioc-02/config/ioc.yaml @@ -0,0 +1,18 @@ +# yaml-language-server: $schema=https://github.com/epics-containers/ioc-adsimdetector/releases/download/2024.1.1/ibek.ioc.schema.json + +ioc_name: bl01t-ea-ioc-02 +description: Example simulated camera for BL01T + +entities: + - type: ADSimDetector.simDetector + PORT: DET.DET + P: BL01T-EA-TST-02 + R: ":DET:" + - type: ADCore.NDPvaPlugin + PORT: DET.PVA + PVNAME: BL01T-EA-TST-02:PVA:OUTPUT + P: BL01T-EA-TST-02 + R: ":PVA:" + NDARRAY_PORT: DET.DET + - type: epics.StartupCommand + command: dbLoadRecords(config/extra.db) diff --git a/iocs/bl01t-ea-ioc-02/config/st.cmd b/iocs/bl01t-ea-ioc-02/config/st.cmd new file mode 100644 index 0000000..f93a524 --- /dev/null +++ b/iocs/bl01t-ea-ioc-02/config/st.cmd @@ -0,0 +1,15 @@ +# EPICS IOC Startup Script generated by https://github.com/epics-containers/ibek + +cd "/epics/ioc" +dbLoadDatabase dbd/ioc.dbd +ioc_registerRecordDeviceDriver pdbbase + +# simDetectorConfig(portName, maxSizeX, maxSizeY, dataType, maxBuffers, maxMemory) +simDetectorConfig("DET.DET", 1280, 1024, 1, 50, 0) +# NDPvaConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr, pvName, maxBuffers, maxMemory, priority, stackSize) +NDPvaConfigure("DET.PVA", 2, 0, "DET.DET", 0, BL01T-EA-TST-02:PVA:OUTPUT, 0, 0, 0, 0) +startPVAServer + +dbLoadRecords $(RUNTIME_DIR)/ioc.db +iocInit + diff --git a/iocs/bl01t-ea-ioc-02/values.yaml b/iocs/bl01t-ea-ioc-02/values.yaml new file mode 100644 index 0000000..42ae637 --- /dev/null +++ b/iocs/bl01t-ea-ioc-02/values.yaml @@ -0,0 +1 @@ +image: ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.1 \ No newline at end of file