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  <20152016  2017  2018  2019  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: ai record doesn't do convert for floats?
From: "Pearson, Matthew R." <[email protected]>
To: "[email protected] list" <[email protected]>
Date: Fri, 18 Sep 2015 20:48:53 +0000
Hi,

I’m wondering why it’s convention that the ai record doesn’t use its convert function when using some types of device support routines. The analog value read function should return status=2 according to the IOC developers guide, and this causes it to not do any LINR type conversion on the VAL field.

I’m wondering why I can’t do this:

record(ai, "$(S):SE:CH1:PVRaw")
{
  field(DESC, "Process Variable CH1")
  field(DTYP, "asynFloat64")
  field(INP, "@asyn(n1,0,1)")
  field(SCAN, "I/O Intr")
  field(LINR, “SLOPE”)
  field(ESLO, “0.1”)
}

whatever the device support routine passes to the ai record is what I get in VAL. So to do slope conversions I have to pass it to another ai record using soft channel device support.

Although, I’ve found that using asynInt32 support does return 0 to the record support, causing the conversion to happen to VAL. I believe ai support in streamDevice does the same.

Cheers,
Matt

Spallation Neutron Source
ORNL







Replies:
Re: ai record doesn't do convert for floats? nick.rees
Re: ai record doesn't do convert for floats? Andrew Johnson

Navigate by Date:
Prev: Re: "security audit" of EPICS / Channel Access? J. Lewis Muir
Next: Re: ai record doesn't do convert for floats? nick.rees
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: *****SPAM*****makeBaseApp.pl Error J. Lewis Muir
Next: Re: ai record doesn't do convert for floats? nick.rees
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·