Device support has priviledged access to a record's fields, and should not use channel access to change a field value. (dbPutField uses channel access.) Just write directly to the field (for example, "prec->val = 3;"). Make sure you then call db_post_events() so everybody else will know that you've changed the field value.
Tim
----- Original Message -----
> From: [email protected]
> To: "tech-talk" <[email protected]>
> Sent: Tuesday, March 5, 2013 11:19:23 PM
> Subject: database runtime acess
>
> hello:
>
> I want to change a process valiable's field at runtime in the device
> support. The record type is writen by myself.
>
> I do it using the dbPutField() as the 15th chapter of application
> developer's guide said.
>
> but I always get an segment fault after i process the record's field
> at runtime.
>
> Am I do it somewhere wrong?
>
>
>
- References:
- database runtime acess ahwwq
- Navigate by Date:
- Prev:
database runtime acess ahwwq
- Next:
RE: EPICS Record Support luedeke
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
database runtime acess ahwwq
- Next:
MEDM won't compile in Cygwin: "Too many open files" Poff, Mark A
- 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
2018
2019
2020
2021
2022
2023
2024
|