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  <20112012  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: nuse field in compress record
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Wed, 1 Jun 2011 14:27:10 -0500
Hi Matt,

On 2011-06-01 [email protected] wrote:
> I've noticed that the NUSE field in the compress record isn't posted as an
>  event. Is there a reason for this? Can we modify the record to post
>  changes to NUSE?

I don't see why not, although I it might not be the only field we want to post 
changes for.  I see updates happening to the OFF, INPN, INX and CVB fields as 
well during processing, but I'm not too sure what they're all used for.

> I attempted a patch on our local copy of base 3.14.11... But for some
>  reason it didn't work. Have I missed something?

Yup, an & before the second parameter to db_post_events() which is a pointer 
to the field that has just changed.  BPTR contains a pointer to the data in 
VAL, so the existing call to db_post_events() is actually notifying RSRV about 
a change to the VAL field.  Try this instead:

--- src/rec/compressRecord.c    (revision 62483)
+++ src/rec/compressRecord.c    (working copy)
@@ -92,7 +92,10 @@
 
         monitor_mask = recGblResetAlarms(prec);
	monitor_mask |= (DBE_LOG|DBE_VALUE);
-	if(monitor_mask) db_post_events(prec,prec->bptr,monitor_mask);
+        if (monitor_mask) {
+            db_post_events(prec, &prec->nuse, monitor_mask);
+            db_post_events(prec, prec->bptr, monitor_mask);
+        }
 	return;
 }
 

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

References:
nuse field in compress record matthew.pearson

Navigate by Date:
Prev: nuse field in compress record matthew.pearson
Next: EPICS Base darwin-x86_64 target architecture? J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: nuse field in compress record matthew.pearson
Next: EPICS Base darwin-x86_64 target architecture? J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·