Hi Lynn,
There is an error in that file, made in this commit:
corvette:xspress3/xspress3App/Db>git diff b3391a97e39947744ef7d69c84c3a9abf8d4323c xspress3ChannelDeadtime.template
diff --git a/xspress3App/Db/xspress3ChannelDeadtime.template b/xspress3App/Db/xspress3ChannelDeadtime.template
index b34380f..bc470cb 100755
--- a/xspress3App/Db/xspress3ChannelDeadtime.template
+++ b/xspress3App/Db/xspress3ChannelDeadtime.template
@@ -7,19 +7,17 @@ record(ao, "$(P)C$(CHAN):EventWidth") {
}
# percent deadtime = allevent*event width + time in reset
-record(ai, "$(P)C$(CHAN):DeadTime_RBV") {
+record(ao, "$(P)C$(CHAN):DeadTime_RBV") {
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))XSP3_CHAN_DTPERCENT")
- field(SCAN, "I/O Intr")
field(VAL, "0")
field(PREC, "5")
}
# deadtime correction factor
-record(ai, "$(P)C$(CHAN):DTFactor_RBV") {
+record(ao, "$(P)C$(CHAN):DTFactor_RBV") {
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))XSP3_CHAN_DTFACTOR")
- field(SCAN, "I/O Intr")
field(VAL, "1")
field(PREC, "5")
}
When the records were changed from ai to ao the links should have been changed from INP to OUT. Since they are readbacks perhaps they should still be ai, but without SCAN=I/O
Intr?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of
lynn via Tech-talk
Sent: Wednesday, July 12, 2023 10:57 PM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: Xspress3 INP error
I met teo question when using xspress of git. https://github.com/epics-modules/xspress3/tree/master/xspress3App/Db
Could someone give me advice.
I use ioc_1Channel st.md, OS was Rocky 9.0
*************************Error 1***************
Record "XSP3_1Chan:C1:DeadTime_RBV" does not have a field "INP"
Error at or before ")" in path "/home/xspress3/epics/xspress3/db" file "xspress3ChannelDeadtime.template" line 12
Record "XSP3_1Chan:C1:DTFactor_RBV" does not have a field "INP"
Error#MCAs: create StdArray for Visualization:
NDStdArraysConfigure("MCA1", 5, 0, "CHAN1", 0, 0)
***** xspress3ChannelDeadtime.template *****
# percent deadtime = allevent*event width + time in reset
record(ao, "$(P)C$(CHAN):DeadTime_RBV") {
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))XSP3_CHAN_DTPERCENT") # line 12
field(VAL, "0")
field(PREC, "5")
}
I don't know how to solve it.
****************** Error 2 *******************************
############################################################################
## EPICS R7.0.3.1
## EPICS Base built Jun 26 2023
############################################################################
reboot_restore: entry for file 'auto_settings.sav'
reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.
*** restoring from './autosave/auto_settings.sav' at initHookState 6 (before record/device init) ***
reboot_restore: done with file 'auto_settings.sav'
XSP3_1Chan:C1:DeadTime_RBV devAsynFloat64::initCommon invalid INST_IO Must be asyn(<port> <addr> <timeout>)userParams
Error (514,514) PV: XSP3_1Chan:C1:DeadTime_RBV ao: init_record
XSP3_1Chan:C1:DTFactor_RBV devAsynFloat64::initCommon invalid INST_IO Must be asyn(<port> <addr> <timeout>)userParams
Error (514,514) PV: XSP3_1Chan:C1:DTFactor_RBV ao: init_record
reboot_restore: entry for file 'auto_settings.sav'
reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.
*** restoring from './autosave/auto_settings.sav' at initHookState 7 (after record/device init) ***
reboot_restore: done with file 'auto_settings.sav'