4 Commits
1.1.3 ... sinq

Author SHA1 Message Date
3c67d7c041 Add sinq specific make files 2025-10-17 11:05:59 +02:00
Marco Filho
38218b883e Merge branch 'ICSHWI-22046' into 'master'
Overwrite default initial values

See merge request epics-modules/adorca!30
2025-10-15 16:52:00 +02:00
marcofilho
77b5441d23 Overwrite default initial values 2025-10-15 16:48:35 +02:00
marcofilho
7ee6421657 Update example st.cmd
From this version onwards, it is possible to pass all the data to
ndpluginschemas and then to kafka newest versions, intead of passing
straight to kafka.
2025-10-15 13:09:47 +02:00
4 changed files with 53 additions and 2 deletions

View File

@@ -109,6 +109,14 @@ record("*", "$(P)$(R)AcquirePeriod_RBV") {
field(FLNK, "$(P)$(R)#EVRAcquireTime-S.PROC PP MS")
}
record("*", "$(P)$(R)AcquireTime") {
field(VAL, "0.9")
}
record("*", "$(P)$(R)AcquirePeriod") {
field(VAL, "1")
}
record(calcout, "$(P)$(R)#EVRAcquireTime-S") {
field(DESC, "Set EVR acquire time in seconds")
field(CALC, "A=0?B:A*B")

22
GNUmakefile Normal file
View File

@@ -0,0 +1,22 @@
include /ioc/tools/driver.makefile
REQUIRED += ADCore busy orca_dcamapi
ARCH_FILTER += RHEL%
LIBVERSION = 1.1.4
APP := ADOrcaApp
APPDB := $(APP)/Db
APPSRC := $(APP)/src
APPCMDS := $(APP)/cmds
TEMPLATES += $(wildcard $(APPDB)/*.db)
TEMPLATES += $(wildcard $(ADCORE_DIR)/*.db)
TEMPLATES += $(wildcard $(APPDB)/*.template)
SOURCES += $(APPSRC)/orca.cpp
DBDS += $(APPSRC)/orca.dbd
SCRIPTS += $(wildcard iocsh/*.iocsh)

17
Makefile.sdk Normal file
View File

@@ -0,0 +1,17 @@
include /ioc/tools/driver.makefile
BUILDCLASSES = Linux
MODULE = orca_dcamapi
LIBVERSION = 4.0.6269
ARCH_FILTER += RHEL%
SUPPORT:= support/dcamsdk4/lib/linux-x86_64
SHRLIBS += $(SUPPORT)/libdcamapi.so.4
SHRLIBS += $(SUPPORT)/libdcamapi.so.4.0.6269
SHRLIBS += $(SUPPORT)/libdcamapi.so
HEADERS = $(wildcard support/dcamsdk4/inc/*.h)

View File

@@ -1,4 +1,5 @@
require adorca
require ndpluginschemas
require adpluginkafka
epicsEnvSet("PREFIX", "YMIR-Det1:")
@@ -34,6 +35,9 @@ NDPvaConfigure("PVA1", $(QSIZE), 0, "$(PORT)", 0, "$(PREFIX)Pva1:Image", 0, 0, 0
dbLoadRecords("$(adcore_DIR)/db/NDPva.template", "P=$(PREFIX),R=Pva1:, PORT=PVA1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
#
NDSchemasConfigure("Schemas1", "$(QSIZE)", 0, "$(PORT)", 0, 0, 0, "test-orca-lab", 0)
dbLoadRecords("$(ndpluginschemas_DB)/NDPluginSchemas.template", "P=$(PREFIX), R=schemas:, PORT=Schemas1, ADDR=0, TIMEOUT=1, NDARRAY_PORT=$(PORT)")
# Create a standard arrays plugin, set it to get data from orca driver.
NDStdArraysConfigure("Image1", "$(QSIZE)", 0, "$(PORT)", 0, 0)
dbLoadRecords("NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int32,FTVL=LONG,NELEMENTS=$(NELEMENTS)")
@@ -44,8 +48,8 @@ epicsEnvSet("KFK_TOPIC", "ymir_camera")
# Kafka plugin
#epicsEnvSet("KFK_CONFIG_FILE_PATH", "/etc/kafka/kafka.conf")
#KafkaPluginConfigure("KFK1", 3, 1, "$(PORT)", 0, -1, "$(KFK_TOPIC)", "hama_kfk1","$(KFK_CONFIG_FILE_PATH)")
#dbLoadRecords("$(adpluginkafka_DIR)db/adpluginkafka.db", "P=$(PREFIX), R=Kfk1:, PORT=KFK1, ADDR=0, TIMEOUT=1, NDARRAY_PORT=$(PORT)")
KafkaPluginConfigure("Kafka1", 3, 1, "Schemas1", 0, -1, "$(KFK_TOPIC)","$(KFK_CONFIG_FILE_PATH)")
dbLoadRecords("$(adpluginkafka_DB)/adpluginkafka.db", "P=$(PREFIX), R=Kfk1:, PORT=Kafka1, ADDR=0, TIMEOUT=1, NDARRAY_PORT=Schemas1")
# startPVAServer
iocInit()