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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: aSub Question
From: "Szalata, Zenon M." <[email protected]>
To: "Straumann, Till" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Sat, 3 Jul 2010 14:12:06 -0700
Thanks Till,
I just could not see the missing '$' for the life of me.

Zen

-----Original Message-----
From: Till Straumann [mailto:[email protected]] 
Sent: Saturday, July 03, 2010 9:06 AM
To: Szalata, Zenon M.
Cc: [email protected]
Subject: Re: aSub Question

Missing '$' ?

subRecord.c:

static long process(subRecord *prec)
{
     long status = 0;
     int pact = prec->pact;

     if (!pact) {
         prec->pact = TRUE;
         status = fetch_values(prec);
         prec->pact = FALSE;
     }
     if (status == 0) status = do_sub(prec);
    ...

Hence, if INPA is not fetched successfully then the
subroutine is not executed as part of record processing.


HTH
-- T.



On 07/02/2010 04:38 PM, Szalata, Zenon M. wrote:
> I have a waveform and an aSub records.  I want to transfer data from the waveform to the aSub record and I am having difficulties with that.
>
> Here is my (simplified) waveform record:
>
> record( waveform, "$(P):WF:REQUEST"){
>    field( DESC, "struct for request")
>    field( FTVL, "CHAR")
>    field( NELM, "132")
>    field( FLNK, "$(P):AS:REQUEST")
> }
>
> and here is my aSub record:
>
> record( aSub, "$(P):AS:REQUEST"){
>    field( DESC, "struct for request")
>    field( INAM, "asInitialize")
>    field( SNAM, "asRequest")
> #  field( INPA, "(P):WF:REQUEST")
>    field( FTA,  "CHAR")
>    field( NOA,  "132")
>    field( FTVA, "UCHAR")
>    field( NOVA, "132")
> }
>
> When I process the waveform record, the asRequest routine gets called when the INPA field is commented out.  However, when I uncomment the INPA field, asRequest routine no longer gets called when the waveform record is processed.  Looking at the TIME field in the aSub record I can tell that the records is getting processed each time I process the waveform record, regardless if the INPA field is commented out or not.
>
> Is it not allowed to transfer array of bytes from one record to another?
> Is there a way to make that kind of data transfer?
>
> Thanks in advance,
> Zen
>
>    



References:
aSub Question Szalata, Zenon M.
Re: aSub Question Till Straumann

Navigate by Date:
Prev: Re: aSub Question Till Straumann
Next: Thread model for EPICS on ARM CPU Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: aSub Question Till Straumann
Next: Thread model for EPICS on ARM CPU Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·