Brian,
I ran into this same problem on one of my own custom records. The trick
is that the 2nd parameter of db_post_events should be the address of the
*data* (usually this is the same as the address of the field, but not for
SPC_DBADDR fields).
Hope this helps.
Eric Bj.
>I'm trying to get monitors for arrays in a custom record to work.
>
>Here's a piece of the monitor() function:
>
> monitor_mask = recGblResetAlarms(pbpm);
>
> monitor_mask |= (DBE_VALUE | DBE_LOG);
>
> db_post_events(pbpm, &pbpm->nscp, monitor_mask);
> if (pbpm->nscp > 0) {
> db_post_events(pbpm, &pbpm->xscp, monitor_mask);
> }
>
>Here are the field definitions:
>
> field(NSCP,DBF_SHORT) {
> prompt("Number of Scope Samples")
> special(SPC_NOMOD)
> interest(3)
> }
> field(XSCP,DBF_NOACCESS) {
> prompt("X Scope Data")
> special(SPC_DBADDR)
> interest(3)
> extra("uint8_t * xscp")
> }
>
>Monitors on NSCP work just fine. Monitors on XSCP only get called once.
>
>What am I missing ?
==============================================================================
Eric Bjorklund Voice: 505-667-6031
Los Alamos National Laboratory Email: [email protected]
LANSCE-6 MS H828
PO Box 1663
Los Alamos, NM 87545
==============================================================================
"Try not to sweat the petty things.
And for sure don't pet the sweaty things."
- Navigate by Date:
- Prev:
monitors for arrays Brian McAllister
- Next:
RE: DEC Threads Jeff Hill
- 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
- Navigate by Thread:
- Prev:
monitors for arrays Brian McAllister
- Next:
RE: DEC Threads Jeff Hill
- 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
|