This commit is contained in:
2024-03-04 20:58:33 +01:00
parent 317adbc98e
commit e7d90c550a
8 changed files with 182 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#==============================================================================
# ecmcAddDaqArray.cmd
#-------------- Information:
#- Description: ecmc_plugin_daq ecmcAddDaqArray.cmd
#- Add a DAQ-Array object
#-
#- by Anders Sandström, Paul Scherrer Institute, 2024
#- email: anders.sandstroem@psi.ch
#-
#-###############################################################################
#-
#- Arguments
#- NAME : Name of DAQ array object
#-
#################################################################################
#- Name , Asyn port name
ecmcAddDAQArray(${NAME},ECMC.PLUGIN.DAQ.${NAME})

View File

@@ -0,0 +1,19 @@
#==============================================================================
# ecmcAddDaqChannel.cmd
#-------------- Information:
#- Description: ecmc_plugin_daq ecmcAddDaqChannel.cmd
#- Add a DAQ-channel to the last added DAQ-array object
#-
#- by Anders Sandström, Paul Scherrer Institute, 2024
#- email: anders.sandstroem@psi.ch
#-
#-###############################################################################
#-
#- Arguments
#- TYPE : Type (number of data type)
#-
#################################################################################
ecmcAddDAQChannel(${TYPE})

View File

@@ -0,0 +1,26 @@
#==============================================================================
# ecmcAddDaqDataItem.cmd
#-------------- Information:
#- Description: ecmc_plugin_daq ecmcAddDaqDataItem.cmd
#- Add a DAQ-dataitem to the last added DAQ-channel object
#-
#- by Anders Sandström, Paul Scherrer Institute, 2024
#- email: anders.sandstroem@psi.ch
#-
#-###############################################################################
#-
#- Arguments
#- PARAM : Parameter to add (ec0.s1.positionActual01)
#- FORMAT: Optional formatting of data
#- 0 = raw (default) : Take raw value (do not apply special format)\n");
#- 1 = time_micro_s : Time: Recalc 64bit nano seconds to 32 bit micro second counter\n");
#- 2 = time_micro_s_minus_period : Time: Recalc 64bit nano seconds to 32 bit micro second counter minus one ec-period.\n");
#- Useful for oversampling slaves where normally the nextsync time is available.\n");
#- The calculated time then would correspond to the first data in the array recived.\n");
#- 3 = time_ns_minus_period : Time: Raw value minus one period.\n");
#-
#################################################################################
ecmcAddDAQItem(${PARAM},${FORMAT=0})

View File

@@ -0,0 +1,26 @@
#==============================================================================
# ecmcLoadDaqArrayRecords.cmd
#-------------- Information:
#- Description: ecmc_plugin_daq ecmcLoadDaqArrayRecords.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
#-
#################################################################################
# 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)