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  2020  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: channel and pv deadband
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: "Mezger Anton Christian (PSI)" <anton.mezger at psi.ch>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Sat, 2 Oct 2021 22:27:02 +0000
Hi Anton,

On Oct 1, 2021, at 8:14 AM, Mezger Anton Christian (PSI) via Tech-talk <tech-talk at aps.anl.gov> wrote:

The problem is with the deadband specified as filter with a channel or pv. My example:

record(ao,"ACM:TEST:AO") {
...
    field(DTYP,"Soft Channel")
...
    field(MDEL,"0.000000000000000e+00")
...
}

and withcamonitor ACM:TEST:AO.{"dbnd":{"abs":1.5}}

I only get update when I put a value outside the deadband

I can’t seem to replicate your issue. I’m using this database:

woz$ cat ~/db/analog.db 
record(ai, "ai") {}
record(ao, "ao") {}

Here’s me starting the soft IOC and writing to the records:

woz$ softIoc -d ~/db/analog.db 
Starting iocInit
############################################################################
## EPICS R7.0.6.1-DEV
## Rev. R7.0.6-23-g21e7e4ddfbfbcf8ca5c6-dirty
############################################################################
iocRun: All initialization complete
epics> dbpf ai 10
DBF_DOUBLE:         10        
epics> dbpf ai 0
DBF_DOUBLE:         0         
epics> dbpf ai 1
DBF_DOUBLE:         1         
epics> dbpf ai 1.49
DBF_DOUBLE:         1.49      
epics> dbpf ai 1.5
DBF_DOUBLE:         1.5       
epics> dbpf ai 1.501
DBF_DOUBLE:         1.501     
epics> dbpf ao 1.5
DBF_DOUBLE:         1.5       
epics> dbpf ao 1.501
DBF_DOUBLE:         1.501     
epics> dbpf ao 1
DBF_DOUBLE:         1         
epics> dbpf ao 0.1
DBF_DOUBLE:         0.1       
epics> dbpf ao 0
DBF_DOUBLE:         0

and here’s what my camonitor output looked like. I started it immediately after the softIoc, before the first dbpf command above:

woz$ camonitor 'ai.{dbnd:{abs:1.5}}' 'ao.{dbnd:{abs:1.5}}'
ai.{dbnd:{abs:1.5}}            <undefined> 0 UDF INVALID
ao.{dbnd:{abs:1.5}}            <undefined> 0 UDF INVALID
ai.{dbnd:{abs:1.5}}            2021-10-02 17:08:32.684729 10  
ai.{dbnd:{abs:1.5}}            2021-10-02 17:08:39.867667 0  
ai.{dbnd:{abs:1.5}}            2021-10-02 17:09:05.595295 1.501  
ao.{dbnd:{abs:1.5}}            2021-10-02 17:09:32.741622 1.501  
ao.{dbnd:{abs:1.5}}            2021-10-02 17:10:02.573699 0  

The first two lines that show the undefined timestamp and UDF/Invalid alarm give the initial channel values as zero, then after testing with 10 and 0 there were no monitors posted until the value went over the deadband.

If you’re seeing something different, can you post your complete output from camonitor?

- Andrew

-- 
Complexity comes for free, simplicity you have to work for.


Replies:
Re: channel and pv deadband Mezger Anton Christian (PSI) via Tech-talk
References:
channel and pv deadband Mezger Anton Christian (PSI) via Tech-talk
Re: channel and pv deadband Kasemir, Kay via Tech-talk
Re: channel and pv deadband Mezger Anton Christian (PSI) via Tech-talk

Navigate by Date:
Prev: Backing up the ArchiverStores STS MTS LTS Epic Archiver Appliance Manoussakis, Adamandios via Tech-talk
Next: Re: channel and pv deadband Mezger Anton Christian (PSI) 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  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: channel and pv deadband Mezger Anton Christian (PSI) via Tech-talk
Next: Re: channel and pv deadband Mezger Anton Christian (PSI) 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  2020  <20212022  2023  2024 
ANJ, 03 Oct 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·