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  <20142015  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  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: TPRO Field Definition
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Wed, 5 Feb 2014 14:03:10 -0600
I adjusted the Wiki field description to reflect the current code:

  If this field is non-zero a message is printed whenever this
  record is processed, and when any other record in the same
  lock-set is processed by a database link from this record.

I do like the idea of using TPRO > 1 to trigger debug messages from
record processing, and this could also be used by device support. It
should be up to the specific record/device support to document its usage
though.

- Andrew

On 01/31/2014 09:46 AM, Michael Davidsaver wrote:
> From what I can see TPRO is only ever tested zero/non-zero.
> 
> $ grep -w tpro src/db*/*
> src/db/dbAccess.c:      unsigned char  
> tpro=precord->tpro;                                                                                                       
> 
> src/db/dbAccess.c:      if (tpro)
> {                                                                                                                               
> 
> src/db/dbAccess.c:                if (precord->tpro) 
> 
> 
> On 01/31/2014 09:27 AM, Dudley, David wrote:
>> I’m looking through the Documentation on "Fields common to all record
>> types", and I see that TPRO is defined as:
>>
>>
>>
>> which seems to imply that the only valid contents are 0 or 1.
>>
>> I see that TPRO is defined as a UCHAR, in the section earlier, so I am
>> wondering…..
>>
>> I need to print varied amounts of information on a record as it’s
>> being processed, during a debugging session, so can I  plan on using
>> values assigned in TPRO -other- than just 0 and 1  (2,3….) to vary the
>> amount of information printed by the device driver.
>>
>> Unless this is a problem,  can the definition of that field be
>> adjusted to state that numbers greater than 0 print information on the
>> record each time it is processed?
>>
>>
>> Later-
>>
>> David Dudley
>> [email protected] <mailto:[email protected]>
>>
>>
>>
> 

-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

References:
TPRO Field Definition Dudley, David
Re: TPRO Field Definition Michael Davidsaver

Navigate by Date:
Prev: Re: stdout/stderr buffering on Windows Andrew Johnson
Next: Re: importing jar files from CSS Python script Hovanes Egiyan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: TPRO Field Definition Michael Davidsaver
Next: Question on How to add a new breakpoint table Goff, Steven J
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·