Am 18.03.20 um 18:15 schrieb Ralph Lange via Core-talk:
> Oh, you're thinking "scalar to array" for this whole thing?
> I was always assuming "array to array".
Well, EPICS traditionally makes no distinction between arrays and
scalars: scalars are just arrays with one element. This is the case at
the level of record field definition and also in CA. (This is different
for pvData but we are talking about the IOC core which is still based on
the old type model.)
To answer your question, no, I did not *exclusively* think "scalar to
array". I merely used it as the simplest (and most convincing) example.
The argument is quite similar for "array to array":
caput -a PV.[2:2:6] 3 1.0 2.0 3.0
has (IMHO) only one sensible interpretation namely "write 1.0 to PV[2],
2.0 to PV[4], and 3.0 to PV[6]".
Similarly,
record(wf,"X") {
field(OUT,"PV.[2:2:6]")
}
should mean "write the first 3 elements of X.VAL to PV[2], pv[4], and
PV[6], respectively". If X.VAL has less elements (X.NORD < 3) then of
course only up to NORD elements are written.
The reason I make these assertions is that the "configuration" is
attached to the name of the target PV. IMO this makes it untuitively
clear that the target PV is what the configuration refers to, at least
by default.
Cheers
Ben
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (Sprecher), Prof. Dr. Jan Lüning, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
Attachment:
pEpkey.asc
Description: application/pgp-keys
- References:
- Re: write to a single element of an array field Ben Franksen via Core-talk
- Re: write to a single element of an array field Ralph Lange via Core-talk
- Re: write to a single element of an array field Ben Franksen via Core-talk
- Re: write to a single element of an array field Ralph Lange via Core-talk
- Navigate by Date:
- Prev:
Jenkins build is still unstable: epics-base-7.0-win64s-test #146 APS Jenkins via Core-talk
- Next:
IOC build fails after removing an iocBoot dir from Git Konrad, Martin 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: write to a single element of an array field Ralph Lange via Core-talk
- Next:
Re: write to a single element of an array field 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
|