EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: New/improved iocsh debug utility functions (dbli)
From: Dirk Zimoch <[email protected]>
To: <[email protected]>
Date: Fri, 2 Mar 2018 10:56:00 +0100

On 02.03.2018 01:19, Andrew Johnson wrote:
dbli (list info)
New: List all info fields matching given naming patterns.
Michael and/or Ralph have requested a command like this fairly recently,
so I am very interested in your code. Are you aware that in EPICS 7 the
tag value strings can be JSON objects and stretch over multiple lines?
This might affect how you have to show them. You can see some examples
in modules/pva2pva/testApp/testpdb-groups.db.



epics> dbli
dz:ai.autosaveFields_pass0 "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV"
dz:ai.my_other_info_field "Hello EPICS"
dz:ai.a_third_info "bla bla"
dz:ao.my_info_field "Hello World"
dz:ao.autosaveFields_pass0 "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV"
dz:ao.autosaveFields_pass1 "VAL"

epics> dbli autosaveFields_pass0
dz:ai.autosaveFields_pass0 "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV"
dz:ao.autosaveFields_pass0 "HOPR LOPR HIHI HIGH LOW LOLO HHSV HSV LSV LLSV"

epics> dbli my_*info*
dz:ai.my_other_info_field "Hello EPICS"
dz:ao.my_info_field "Hello World"

epics> dbli *other*, *pass1
dz:ai.my_other_info_field "Hello EPICS"
dz:ao.autosaveFields_pass1 "VAL"


I have written an API function, so that other code can easily do the same thing.

long dbNextMatchingInfo(DBENTRY *pdbentry, const char* patternlist[])

The function goes though all records, finds each info and tests its name against a list of patterns. The list is a NULL terminated array of char*.

usage:
dbInitEntry(pdbbase, &dbentry);
while (dbNextMatchingInfo(&dbentry, patternlist) == 0) { ... }

Replies:
Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
References:
New/improved iocsh debug utility functions Dirk Zimoch
Re: New/improved iocsh debug utility functions Andrew Johnson

Navigate by Date:
Prev: Re: New/improved iocsh debug utility functions (dbll) Dirk Zimoch
Next: Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: New/improved iocsh debug utility functions (dbll) Dirk Zimoch
Next: Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 02 Mar 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·