Hi everyone,
I found something confusing in the link syntax today when accessing arrays.
field(INP, "$(WF_RECORD).[5] CP") returns the number at index 5
but field(INP, "$(WF_RECORD).[5]") returns the number at index 0
This can be very confusing to the user. It would be nice to have the same array
syntax regardless of the link type, CA or not.
Here is my test db:
record(aai, "$(P)AAI") {
field(NELM, 10)
field(INP, [1,2,3,4,5,6,7,8,9,10])
}
record(ai, "$(P)AI1") {
field(INP, "$(P)AAI.[5] CP")
field(PINI, YES)
}
record(ai, "$(P)AI2") {
field(INP, "$(P)AAI.[5]")
field(PINI, YES)
}
Dirk
- Replies:
- Re: EPICS 7 array link inconsistencies Johnson, Andrew N. via Core-talk
- Navigate by Date:
- Prev:
Misleading "initPeriodic: Scan rate ... is not achievable" and sleep quantum implementation Zimoch Dirk (PSI) via Core-talk
- Next:
Re: Misleading "initPeriodic: Scan rate ... is not achievable" and sleep quantum implementation Zimoch Dirk (PSI) via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
<2019>
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Misleading "initPeriodic: Scan rate ... is not achievable" and sleep quantum implementation Zimoch Dirk (PSI) via Core-talk
- Next:
Re: EPICS 7 array link inconsistencies Johnson, Andrew N. via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
<2019>
2020
2021
2022
2023
2024
|