Experimental Physics and Industrial Control System
|
On 11/8/23 05:45, Érico Nogueira Rolim via Tech-talk wrote: >
> This was an inconsistency I noticed in caget. The help output lists
> multiple DBR_...INT types as options for caget's -d option, but none of
> them work, because the dbr_text array from
> modules/ca/src/client/access.cpp includes only DBR_...SHORT strings.
> Would it be okay to simply remove the INT options from the help output
> entirely? Or should the tool try and replace "INT" for "SHORT", similar
> to how it adds "DBR_" when it doesn't find a match at first?
I had not noticed this before. I guess because DOUBLE and LONG are much more common.
Different case, though: DOUBLE and LONG do exist as separate different DBR_ type codes.
> $ caget -d INT some:name
> Requested dbr type out of range or invalid - ignored. ('caget -h' for help.)
...
Correcting the help message would be a good first step.
I would just silently replace "_INT" by "_SHORT" when reading the argument. Since the _INT tag appears in header files and documentation, we would call for users asking why we don't support INT...
Note that the help message correctly shows the same numerical type for them - it just slipped that "INT" is not valid as the tag string.
Good catch! ~Ralph
- References:
- caget -d DBR_...INT doesn't work Érico Nogueira Rolim via Tech-talk
- Re: caget -d DBR_...INT doesn't work Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
AW: ADPerkinElmer Bad Pixel Files Sintschuk, Michael via Tech-talk
- Next:
Re: second relative motion stuck in a do loop Tran, Phi Dung 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
<2023>
2024
- Navigate by Thread:
- Prev:
Re: caget -d DBR_...INT doesn't work Michael Davidsaver via Tech-talk
- Next:
CS-Studio XY Graph problem with >2046 samples Heesterman, Peter 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
<2023>
2024
|
ANJ, 09 Nov 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|