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: Mark Rivers <[email protected]>
To: ishita bhatia <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Tue, 1 Mar 2016 12:26:46 +0000
Where does it crash? You need to put in a bunch of printf calls to see where it is crashing.  Print the values of the pGVO and paddr pointers with %p.

Mark

//----------------------------CODE TO READ GV0 VALUE------------------
static long read_GV0(pGV0)
struct aiRecord *pGV0;
{
long int t;
struct dbAddr *paddr;
t = pGV0->val;

paddr = dbGetPdbAddrFromLink(&pGV0->inp);
dbGet(paddr,DBR_FLOAT,(void *)t,0,1,NULL);
printf("GV0=%ld",t);
return(2);
}



From: [email protected] [[email protected]] on behalf of ishita bhatia [[email protected]]
Sent: Tuesday, March 01, 2016 4:07 AM
To: EPICS Tech-Talk
Subject: read value from ai record to Device support

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


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

Navigate by Date:
Prev: read value from ai record to Device support ishita bhatia
Next: Re: read value from ai record to Device support Xiaoxu Ren
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: read value from ai record to Device support ishita bhatia
Next: Re: read value from ai record to Device support Xiaoxu Ren
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 ·