#============================================================================== # 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 #- DATA_FLNK : Forward link from data array (optional, default to '') #- #-################################################################################ #- 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() dbLoadRecords(ecmcPluginDAQ.template,"P=${ECMC_PREFIX},Name=${NAME},NELM=${DAQ_NELM},PORT=ECMC.PLUGIN.DAQ.${NAME},FLNK=${DATA_FLNK=''}") epicsEnvUnset(DAQ_NELM) epicsEnvUnset(ECMC_DAQ_CURR_CH) epicsEnvUnset(ECMC_DAQ_CURR_ITM)