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  2023  <2024 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
<== Date ==> <== Thread ==>

Subject: Re: pvget syntax
From: Charter via Tech-talk <tech-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>
Cc: tech-talk at aps.anl.gov
Date: Thu, 7 Mar 2024 17:45:05 -0500
Adapting a stack overflow discussion gives
echo “obase=16;” `pvget pvname | cut -d “ “ -f 5` | bc

You would have to do this from a script to make it tolerable.


On Mar 7, 2024, at 11:20 AM, Johnson, Andrew N. via Tech-talk <tech-talk at aps.anl.gov> wrote:



Hi Pierrick,

 

It took many years for the CA command-line tools caget, caput and camonitor to gain some of their command-line options including the numeric formatting ones. Unfortunately the pvtools programs haven't reached the same level of sophistication yet, so you're going to have to use some other tool to convert the values you want to Hex for now.

 

It only takes someone who needs output formatting like that to volunteer and do the work to add them, or this might be a good project for an EPICS Codeathon. Of course that raises the question of whether to enhance the pvAccessCPP versions, or do the ones in Michael's pvxs replacement, or do both. Personally I think there are enough people still using the old tools that it would still be worth doing them as well, but others might disagree.

 

- Andrew

 

-- 

Complexity comes for free, Simplicity you have to work for.

 

 

On 3/6/24, 6:45 PM, "Tech-talk" <tech-talk-bounces at aps.anl.gov> wrote:

 

Greetings all,
I want to display a value in hex from the command line with pvget .
Would someone kindly help me with the syntax?
Cheers,
Pierrick

--
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford


References:
Re: pvget syntax Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: pvget syntax Johnson, Andrew N. via Tech-talk
Next: Problem with compress record in version 7.0.8 Waddel, Matt 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: pvget syntax Johnson, Andrew N. via Tech-talk
Next: Problem with compress record in version 7.0.8 Waddel, Matt 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, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·