EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: RE: Xspress3 INP error
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: lynn <lynn0703 at yeah.net>, tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 13 Jul 2023 18:27:50 +0000

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

 

Hi,

    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'

 


Regards,

Lynn

 

 

--

Image removed by sender.

lynn

邮箱:lynn0703 at yeah.net

 


References:
Xspress3 INP error lynn via Tech-talk

Navigate by Date:
Prev: How to reset encoder counts after controller power off 岳宗仰 via Tech-talk
Next: Re: Xspress3 INP error Matt Newville via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Xspress3 INP error lynn via Tech-talk
Next: Re: Xspress3 INP error Matt Newville via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 13 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·