Hello, Jeff Hill
But can I get the value of VAL field when camonitor RVAL field?
I want to get the value of VAL & RVAL field when camonitor one field.
DBR_TIME_XXXX just return the value of specified field.
On Wed, 14 Dec 2005 10:52:13 -0700
"Jeff Hill" <[email protected]> wrote:
>
> Hello Huang, Song;
>
> > I use Channel Access Monitor function to monitor a PV (VAL field).
> > When event triggered, it returns the value of VAL field, timestamp, alarm
> > status and other things.
> > But I also want to get the value of other fields (e.g. RVAL) when event
> > triggered.
> > In db_Access.h, it seems all types can't do this.
> >
> > Do I have to get the value of other fields in Event Handler?
>
> One possibility would be to set up a subscription using type DBR_TIME_XXXX
> on channel "<record name>.<field>" expecting to receive the value of the
> specified field along with the time stamp and the alarm status of the record
> with each subscription update.
>
> For example we can test this as follows:
>
> > camonitor aiExample.RVAL
> aiExample.RVAL 2005-12-14 10:42:25.992078 0 LOLO MAJOR
> aiExample.RVAL 2005-12-14 10:43:23.994643 3 LOW MINOR
> aiExample.RVAL 2005-12-14 10:43:24.994700 3
> aiExample.RVAL 2005-12-14 10:44:04.996487 4
> aiExample.RVAL 2005-12-14 10:44:05.996576 4 HIGH MINOR
>
> All the best,
>
> Jeff
>
> > -----Original Message-----
> > From: huangsong [mailto:[email protected]]
> > Sent: Wednesday, December 14, 2005 1:46 AM
> > To: [email protected]
> > Subject: about CA monitor
> >
> > Hello,
> >
> > I use Channel Access Monitor function to monitor a PV (VAL field).
> > When event triggered, it returns the value of VAL field, timestamp, alarm
> > status and other things.
> > But I also want to get the value of other fields (e.g. RVAL) when event
> > triggered.
> > In db_Access.h, it seems all types can't do this.
> >
> > Do I have to get the value of other fields in Event Handler?
> >
> >
> > Best wishes and regards.
> >
> > ----------------
> > Huang,song
> > [email protected]
>
Best wishes and regards.
----------------
Huang,song 黄松
[email protected]
- Replies:
- RE: about CA monitor Jeff Hill
- References:
- about CA monitor huangsong
- RE: about CA monitor Jeff Hill
- Navigate by Date:
- Prev:
RE: about CA monitor Jeff Hill
- Next:
RE: Hytec 8002 ip-carrier board Heron, M (Mark)
- 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:
RE: about CA monitor Jeff Hill
- Next:
RE: about CA monitor 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
|