This commit is contained in:
2024-03-05 08:55:50 +01:00
parent 7f79cdeb03
commit 365104639e
8 changed files with 53 additions and 72 deletions

View File

@@ -0,0 +1,30 @@
#==============================================================================
# ecmcDAQFinalizeArray.cmd
#-------------- Information:
#- Description: ecmc_plugin_daq ecmcDAQFinalizeArray.cmd
#- Load database for a DAQ-Array
#-
#- by Anders Sandström, Paul Scherrer Institute, 2024
#- email: anders.sandstroem@psi.ch
#-
#-###############################################################################
#-
#- Arguments
#- NAME : Name of DAQ array
#-
#################################################################################
#- Connect to sources in order to know NELM.. Data sources must be known before added with the scripts..
help
ecmcDAQConnectToDataSource()
#- Read NELM
ecmcDAQReadNelm(${NAME},"DAQ_NELM")
ecmcIf("${DAQ_NELM=-1}<0")
${IF_TRUE}ecmcExit : Failed read DAQ array NELM
ecmcEndIf()
dbLoadTemplate(ecmcPluginDAQ.template,"P=${ECMC_PREFIX},Name=${NAME},NELM=${DAQ_NELM},PORT=ECMC.PLUGIN.DAQ.${NAME}")
epicsEnvUnset(DAQ_NELM)