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

Subject: Re: read value from ai record to Device support
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Tue, 1 Mar 2016 18:05:39 -0500
On 03/01/2016 05:07 AM, ishita bhatia wrote:
> Hello,
> I am trying to read value in ai record but following code attached
> herewith generates Segmentation Fault ( core dumbed) error on running
> ioc. I am attaching c file for consideration.
> Please guide.
>
> Thanks and Regards,
> Ishita Bhatia

The example you give looks a lot like the default device support code
for aiRecord, which is implemented in devAiSoft.c

https://github.com/epics-base/epics-base/blob/3.16/src/std/dev/devAiSoft.c#L79

As has been mentioned you need to make sure that the DBR_* macro used
must match the type variable you give as a buffer.  Also, reading a link
field should be done with dbGetLink() instead of plain dbGet().


References:
read value from ai record to Device support ishita bhatia

Navigate by Date:
Prev: CSS widgets for cryo plant and cryo system Jeong Han Lee
Next: Raspberrypi GPIO access through EPICS vivek singh
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: read value from ai record to Device support Xiaoxu Ren
Next: XPS Q8 issue with indexHomeSearch sequence Russ Berg
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·