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

Subject: Re: monitors on array variables
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Siddons, David" <siddons at bnl.gov>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Wed, 18 Mar 2020 09:25:05 -0700
On 3/18/20 9:10 AM, Siddons, David via Tech-talk wrote:
> I have an IOC with several array PVs. I do not seem to be able to have them post monitors, so my display screens don't update. Has something changed between 3.14 and 3.15 which might cause this?
> 
> The PVs are declared in the dbd file like this:
> 
>       field(SPCT,DBF_NOACCESS) {
>               prompt("Value")
>              special(SPC_DBADDR)
>              pp(TRUE)
>              extra("void *           spct")
>             }        
> 
>         field(PSPCT,DBF_NOACCESS) {
>                 prompt("Buffer Pointer")
>                 special(SPC_NOMOD)
>                 interest(4)
>                 extra("void *           pspct")
>             }
> 
> and the changed values are posted in record support like this:
> 
> db_post_events(pscal,&(pscal->pspct),DBE_VALUE);
> 
> Am I doing something wrong? This setup used to work in 3.14, although I haven't tried regressing to 3.14 for this code.

Try:

> db_post_events(pscal,&pscal->spct,DBE_VALUE);

by analogy waveformRecord has

> db_post_events(prec, &prec->val, monitor_mask);

note 'val' not 'bptr'.

https://github.com/epics-base/epics-base/blob/25bb966cbc4be1f2a47116a8b9ec940bc2270b12/modules/database/src/std/rec/waveformRecord.c#L325


References:
monitors on array variables Siddons, David via Tech-talk

Navigate by Date:
Prev: RE: Open Instrumentation & Controls Deputy Group Leader Position at LANL Pieck, Martin via Tech-talk
Next: Re: monitors on array variables Mark Rivers 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: monitors on array variables Siddons, David via Tech-talk
Next: Re: monitors on array variables Mark Rivers 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  <20202021  2022  2023  2024 
ANJ, 18 Mar 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·