g+
g+ Communities
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  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: DB Question
From: "Szalata, Zenon M." <zms@slac.stanford.edu>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 16 Nov 2012 08:32:26 -0800

Hi,

I am a bit confused by the following behavior.

I am using EPICS R3.14.12.2 and asyn R4.20.

I have a simple longout record:

 

record( longout, "$(P):$(N):LO:BTOI:NCOEF"){

  field( DESC, "N Coefs:")

  field( DTYP, "asynInt32")

  field( OUT,  "@asyn($(PORT),$(N),1)LO_NCOEF")

 field( VAL,  "2")

  field( PINI, "1")

}

 

After this record is done initializing, caget on it gives me 0.

 

I have introduced another record as follows:

 

record( longout, "$(P):$(N):LO:NCOEF"){

  field( DESC, "N Coefs:")

  field( VAL,  "2")

  field( OUT,  "$(P):$(N):LO:BTOI:NCOEF PP")

  field( PINI, "1")

}

record( longout, "$(P):$(N):LO:BTOI:NCOEF"){

  field( DESC, "N Coefs:")

  field( DTYP, "asynInt32")

  field( OUT,  "@asyn($(PORT),$(N),1)LO_NCOEF")

# field( VAL,  "2")

#  field( PINI, "1")

}

 

With these two records the second one now has the correct value.

Why does the single record solution lose its VAL value?

 

Thanks in advance,

Zen


Replies:
RE: DB Question Mark Rivers

Navigate by Date:
Prev: Re: Long string support in CA clients and device support Andrew Johnson
Next: RE: DB Question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: streamDevice Exception Handler Question Dirk Zimoch
Next: RE: DB Question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·