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

Subject: RE: Convertion for asynFloat64
From: Mark Rivers <[email protected]>
To: "'Benoit'" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 19 Nov 2013 17:57:25 +0000

I don’t think you can do these types of conversions with the asynFloat64 device support for the ao record.  devasynFloat64.c::initAo always returns 2, which means “do not convert”.  In aoRecord.c that means that LINR is always left at the default value of menuConvertNO_CONVERSION.  So this means that the ao record never does any conversions with the asynFloat64 deice support.

 

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Benoit
Sent: Tuesday, November 19, 2013 11:16 AM
To: [email protected]
Subject: Convertion for asynFloat64

 

Hi,

 

I would like to use mV in my EPICS folder and send V to my driver.

I have done conversion correctly using asynInt32 type but it doesn't work with asynFloat64.

Do you have any suggestion?

 

record(ao, "$(S):$(D)_$(C):CavVoltSet")
{
   field(DTYP, "asynFloat64")
   field(OUT,  "@asyn($(PORT),$(ADDR),$(TIMEOUT))cavvolt")
   field(PINI, "YES")
   field(LINR,"SLOPE")
   field(ESLO,"0.001")
   field(PREC, "2")
}

 

I have try with 

 

   field(LINR,"SLOPE")
   field(ASLO,"0.001")

 

and also with 

 

        field(LINR,"LINEAR")
        field(EGUF,"1000")
        field(EGUL,"0")

 

But nothing seems to change when I receive my value in my asynPortDriver.

 

Regards,


--
Benoit RAT
www.neub.co.nr


Replies:
Re: Convertion for asynFloat64 Andrew Johnson
References:
Convertion for asynFloat64 Benoit

Navigate by Date:
Prev: Convertion for asynFloat64 Benoit
Next: RE: Substitutions defaults and tricks Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Convertion for asynFloat64 Benoit
Next: Re: Convertion for asynFloat64 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·