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: NTEnum
From: Gabriel Fedel via Tech-talk <tech-talk at aps.anl.gov>
To: <tech-talk at aps.anl.gov>
Date: Fri, 21 Jul 2023 09:42:42 +0200
Hi Tech-Talk,

I'm playing a bit with the NTEnum (https://docs.epics-controls.org/en/latest/specs/Normative-Types-Specification.html#ntenum), and I'm wondering if would be possible to use a string as the input so I would get its index.

Something like:

pvput PVEnum "ABC"
pvget PVEnum
return : 5

I'm using this db as a start point: https://github.com/epics-base/pva2pva/blob/master/iocBoot/iocimagedemo/ntenum.db

Thanks in advance
Cheers

--
Gabriel Fedel
Embedded Software Developer  / Integrated Control System Division

European Spallation Source ERIC
P.O. Box 176, SE-221 00 Lund, Sweden
Visiting address: Partikelgatan 2, 224 84 Lund
E-mail: gabriel.fedel at ess.eu
ess.eu

Replies:
Re: NTEnum Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: update to Phytron motor support Lutz Rossa via Tech-talk
Next: Need help with Phoebus Alarm E-logger and Interface to the E-mail Charles Jenkins 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: Re: update to Phytron motor support Kevin Peterson via Tech-talk
Next: Re: NTEnum Michael Davidsaver 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, 28 Sep 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·