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 2025 | 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 2025 |
<== 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 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.