Steven Hartman wrote:
>
> On Fri, 8 Jun 2001, J. Frederick Bartlett ([email protected]) wrote:
> > dbProcess. The question is: what do I put in the DTYP and INPUT fields
> > of the record when I define it in a .db file?
>
> If I understand correctly . . .
>
> record(ai,"foo") {
> field(DTYP,"Soft Channel")
> field(INP,"")
> }
>
> where INP is a constant with no initial value.
>
> --
> Steve Hartman
> [email protected]
> Duke Free Electron Laser Laboratory
This is a better answer than the one I gave. There is a difference between
field(INP,"")
and
field(INP,"0")
devAiSoft has the statements
static long init_record(pai)
struct aiRecord *pai;
{
/* ai.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (pai->inp.type) {
case (CONSTANT) :
if(recGblInitConstantLink(&pai->inp,DBF_DOUBLE,&pai->val))
pai->udf = FALSE;
break;
Thus for field(INP,"") udf will not be set FALSE but for field(INP,"0") it will
be set false.
Marty Kraimer
- References:
- Re: Input records with no device support Steven Hartman
- Navigate by Date:
- Prev:
Re: Input records with no device support Marty Kraimer
- Next:
Attaching other interface after VxWorks boot Vladis Korobov
- 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:
Re: Input records with no device support Steven Hartman
- Next:
Re: Input records with no device support Marty Kraimer
- 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
|