EPICS Home

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: Dump record fields into a text file
From: Luedeke Andreas <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: [email protected]
Date: Fri, 30 Apr 2010 17:52:12 +0200
Andrew Johnson wrote on 30/04/10 17:23:
> [...]
> The first parameter to dbl is the record type (it doesn't actually support 
> wild-cards though, "*" or "" are special strings that are explicitly tested 
> for and mean all types), so to avoid the issue of missing fields you could 
> list each record type separately, giving the fields you're interested in for 
> that type:
>     dbl bi "RTYP ZRST ONST DTYP DESC" > bi-data.txt
>     dbl ai "RTYP PREC EGU DTYP DESC" > ai-data.txt
>     dbl calc "RTYP PREC EGU CALC DESC" > calc-data.txt
> etc.
>   
This solution has the risk of "forgetting" records of uncommon record types.
Anyway, I think it would be a nice feature for EPICS 3.15 to create an
empty string if a field does not exist:

     dbl * "RTYP PREC EGU DTYP DESC"

     test:1,"bi",,,"Soft Channel","desc of test:1"
     test:2,"calc","1","unit","","desc of test:2"
     test:3,"longout",,"unit","Soft Channel","desc of test:3"

That minor change would easy parsing the dbl output.

Andreas

-- 
She often gave herself very good advice (though she very seldom followed
it).
                -- Lewis Carroll


Replies:
Re: Dump record fields into a text file Andrew Johnson
References:
Dump record fields into a text file emmanuel_mayssat
Re: Dump record fields into a text file Andrew Johnson
Re: Dump record fields into a text file Luedeke Andreas
Re: Dump record fields into a text file Andrew Johnson

Navigate by Date:
Prev: Re: Dump record fields into a text file Andrew Johnson
Next: Re: Dump record fields into a text file Andrew Johnson
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: Dump record fields into a text file Andrew Johnson
Next: Re: Dump record fields into a text file Andrew Johnson
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