30 lines
963 B
Batchfile
30 lines
963 B
Batchfile
|
|
#==============================================================================
|
|
# ecmcFinalizeDaqArray.cmd
|
|
#-------------- Information:
|
|
#- Description: ecmc_plugin_daq ecmcFinalizeDaqArray.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..
|
|
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)
|
|
|