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  <20182019  2020  2021  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: SMOO expects constant
From: "Southern, Tim" <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Thu, 15 Mar 2018 15:31:10 +0000

SMOO does not update record when it changes, correct? Wouldn’t you need to add a FLINK in the ao record to make this work?

record(ao,            "$(dev):sm")    {

      field(DESC,        "Smoothing")

      field(OUT,         "$(dev):rawval.SMOO")

      field(FLNK,       "$(dev):rawval")

   }

 

- Tim

 

 

 

Field SMOO is not a link field.  You need to arrange for the sm record to write its value to rawvalue.SMOO.  To do that you need to change it from an ai to an ao record.

 

This should work:

 

   record(ao,            "$(dev):sm")    {
      field(DESC,        "Smoothing")

       field(OUT,         "$(dev):rawval.SMOO")

   }


 

From: [email protected] [mailto:[email protected]] On Behalf Of Amien Crombie
Sent: Thursday, March 15, 2018 6:18 AM
To: EPICS Tech-Talk <[email protected]>
Subject: SMOO expects constant

 

Hi here I have 2 of my database records:

################################################################
1)    record(ai,            "$(dev):sm")    {
2)       field(DESC,        "Smoothing")
3)    }
4)    record(ai,            "$(dev):rawval")        {
5)        field(SCAN,        ".1 second")
6)        field(DTYP,        "asynInt32")          #
7)        field(INP,         "@asyn(int32 $(addr) 100)")                  
8)        field(SMOO,        "$(dev):sm")   
9)        field(FLNK,        "$(dev):coef")   
      }    

################################################################

This fails on

Can't set "bc1:rawval.SMOO" to "bc1:sm"
Error at or before ")" in file "db/newioc8.db" line 8

 

If I put a constant (0 - 1) in line(8) it works

Amien


Replies:
Re: SMOO expects constant Mark Rivers
References:
SMOO expects constant Amien Crombie
RE: SMOO expects constant Mark Rivers

Navigate by Date:
Prev: RE: Motor Record not moving distances less than .5 Sobhani, Bayan
Next: Re: SMOO expects constant Mark Rivers
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: SMOO expects constant Mark Rivers
Next: Re: SMOO expects constant Mark Rivers
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 15 Mar 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·