Hi all. Im trying to use the subArray method to select a single element of a waveform record. The waveform record receives its value from an scalcout record:
record(scalcout,"PREFIX:GetRngCalc") {
field (DESC, "Calculate channel's range")
field (INAA, "PREFIX:GetRng CP")
field (CALC, "(AA-'RNG ')")
}
record(waveform, "PREFIX:GetRngWav"){
field (DESC, "Waveform for ranges")
field (INP, "PREFIX:GetRngCalc.SVAL CP")
}
after the ioc initialization:
dbpf
PREFIX:GetRng "RNG 0 1 2 3"
dbgf PREFIX:GetRngWav
DBR_STRING: "0 1 2 3"
So i suppose it works. However, when i try to add the record:
record(subArray,"PREFIX:INDEX:GetRngCalc") {
field (DESC, "Calculate channel's range")
field (INP, "PREFIX:GetRngWav CP")
field (MALM, "4")
field (NELM, "1")
field (INDX, "1")
}
And i try:
dbgf PREFIX:INDEX:GetRngCalc
I get nothing. Am i doing something wrong?
Thanks in advance for any help.
My ioc initialization:
#!../../bin/linux-x86_64/Eras
# https://gitlab.cnpem.br/SOL/synthesizer - Erasv2-ERAS.cmd 1st revision
< envPaths
epicsEnvSet("IOC","iocEras")
epicsEnvSet("TOP","/home/ABTLUS/marco.filho/eras")
epicsEnvSet("ASYN","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/asyn-R4-36")
epicsEnvSet("RECCASTER","/usr/local/epics-nfs/apps/recsync/stable/client")
epicsEnvSet("STREAM","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/StreamDevice-2-8-9")
epicsEnvSet("CALC","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/calc-R3-7-3")
epicsEnvSet("EPICS_BASE","/usr/local/epics-nfs/base/R3.15.6")
epicsEnvSet("BEAMLINE","CAX")
epicsEnvSet("HUTCH","A")
epicsEnvSet("IOCNAME","ERAS022")
epicsEnvSet("STREAM_PROTOCOL_PATH", "/home/ABTLUS/marco.filho/eras/ErasApp/Db")
cd "/home/ABTLUS/marco.filho/eras"
###############################################################################
# Register all support components
dbLoadDatabase "dbd/Eras.dbd"
Eras_registerRecordDeviceDriver (pdbbase)
###############################################################################
# Set up ASYN ports
drvAsynIPPortConfigure("EA", "10.30.13.27:3000")
################################################################################
# Load record instances
# General
dbLoadRecords("ErasApp/Db/dbEras.db","BL=CAX:,HUTCH=A:,M=ERAS022:,PORT=EA")
# Channel 1
dbLoadRecords("ErasApp/Db/dbEras_channel.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=0,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=1,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=2,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=3,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=4,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=5,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=6,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=1,SC=7,PORT=EA")
# Channel 2
dbLoadRecords("ErasApp/Db/dbEras_channel.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=0,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=1,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=2,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=3,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=4,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=5,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=6,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=2,SC=7,PORT=EA")
# Channel 3
dbLoadRecords("ErasApp/Db/dbEras_channel.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=0,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=1,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=2,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=3,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=4,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=5,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=6,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=3,SC=7,PORT=EA")
# Channel 4
dbLoadRecords("ErasApp/Db/dbEras_channel.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=0,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=1,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=2,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=3,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=4,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=5,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=6,PORT=EA")
dbLoadRecords("ErasApp/Db/dbEras_scale_label.db","BL=CAX:,HUTCH=A:,M=ERAS022:,CH=4,SC=7,PORT=EA")
###############################################################################
# Start EPICS
cd "/home/ABTLUS/marco.filho/eras/iocBoot/iocEras"
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.6
## EPICS Base built Sep 27 2021
############################################################################
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 41289,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
dbpf CAX:A:ERAS022:GetRng "RNG 1 1 2 3"
DBR_STRING: "RNG 1 1 2 3"
dbgf CAX:A:ERAS022:CH1:GetRngCalc
dbgf CAX:A:ERAS022:CH2:GetRngCalc
epics> dbgf CAX:A:ERAS022:GetRngWav
DBR_STRING: "1 1 2 3"
epics> dbgf CAX:A:ERAS022:CH1:GetRngCalc