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  <20152016  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Only integer value from CAEN VME protocol
From: Christopher Wells Heidt <[email protected]>
To: Eric Norum <[email protected]>
Cc: [email protected]
Date: Wed, 27 May 2015 17:54:36 +0100

On Wed, May 27, 2015 at 5:13 PM, Eric Norum <[email protected]> wrote:

On May 27, 2015, at 8:49 AM, Christopher Wells Heidt <[email protected]> wrote:

I'm relatively new to epics and writing protocols, so please forgive 
me if I muddle up my terminology.

I'm trying to communicate with a CAEN VME8100 over a network.  I
would like to be able to read out the various channels and write
them into epics to be displayed in an edl panel. I have most of
this done, however, I am only reading out integer values.  So for
example, rather than reading the voltage as 5.23 V I am readding 5 V.
It appears that this is not a rounding error, instead I am only
reading the first digit of the output.

My protocol calling in the voltage looks something like:

​​
readVMON0 {

    out "$CMD:MON,CH:0,PAR:VMON";
    in  "#CMD:OK,VAL:%(PV_NAME.RVAL)f";

RVAL is an integer value.  Hence the complaint about not matching the ‘f’ format.

You should read into VAL.

-- 
Eric Norum
[email protected]



Switching VAL in for RVAL results in the PV reading 0.00.  Looks like the solution
is to remove the PV_NAME completely from the protocol.  It should read:

readVMON0 {

    out "$CMD:MON,CH:0,PAR:VMON";
    in  "#CMD:OK,VAL:%f";
}

-Chris​



References:
Only integer value from CAEN VME protocol Christopher Wells Heidt
Re: Only integer value from CAEN VME protocol Eric Norum

Navigate by Date:
Prev: question about process time of streamdevice Silver
Next: Re: TDCT and Makefile question Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Only integer value from CAEN VME protocol Eric Norum
Next: question about process time of streamdevice Silver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·