EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: about CA monitor
From: "Jeff Hill" <[email protected]>
To: "'huangsong'" <[email protected]>, <[email protected]>
Date: Wed, 14 Dec 2005 10:52:13 -0700
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]



Replies:
Re: about CA monitor huangsong
References:
about CA monitor huangsong

Navigate by Date:
Prev: Re: Acromag 9670 TEWS 220 drivers Andrew Johnson
Next: Re: about CA monitor huangsong
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: about CA monitor huangsong
Next: Re: about CA monitor huangsong
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  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 ·