Skip to content

Commit

Permalink
Added extra.db
Browse files Browse the repository at this point in the history
  • Loading branch information
abigailalexander committed Feb 8, 2024
1 parent 30a845f commit f513e96
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iocs/bl01t-ea-ioc-02/config/extra.db
Original file line number Diff line number Diff line change
@@ -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")
}
27 changes: 27 additions & 0 deletions iocs/bl01t-ea-ioc-02/config/ioc.subst
Original file line number Diff line number Diff line change
@@ -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:" }
}
18 changes: 18 additions & 0 deletions iocs/bl01t-ea-ioc-02/config/ioc.yaml
Original file line number Diff line number Diff line change
@@ -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)
15 changes: 15 additions & 0 deletions iocs/bl01t-ea-ioc-02/config/st.cmd
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions iocs/bl01t-ea-ioc-02/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.1

0 comments on commit f513e96

Please sign in to comment.