EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Waveform record help
From: Andrew Johnson <[email protected]>
To: Erik Johansson <[email protected]>
Cc: [email protected]
Date: Thu, 13 Jul 2006 15:43:56 -0500
Erik Johansson wrote:

If I bypass all EPICS db routines and fill the contents of a waveform record by writing data directly to the BPTR address and then perform a caget on the record, I get all zeros returned, regardless of the data written. Why? What can I do so that caget returns the actual values in the record? Note that I am doing this for debug/troubleshooting purposes during system integration only.

You need to set the NORD field of the record as well, to indicate the number of data items actually contained in the array - if you haven't set it, it probably defaults to zero. Unfortunately the NORD field is marked special(SPC_NOMOD) meaning that you can't set it from CA or using dbpf, but I'll leave that as an exercise for you to work out...


- Andrew
--
Not everything that can be counted counts,
and not everything that counts can be counted.
  -- Albert Einstein

References:
Waveform record help Erik Johansson

Navigate by Date:
Prev: Waveform record help Erik Johansson
Next: RE: Dev lib off-board register access Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Waveform record help Erik Johansson
Next: Thales Optem 30-17-70 Leicester, PJ (Pete)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·