EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 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: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 26 Mar 2010 15:02:22 -0000
Would it be acceptable to do this through a constant string in the
mbbo.DOL link instead of by setting VAL?

I can see this could be made to work if there were a new kind of
constant link that can support non-numeric constants, including arrays,
since as Ben suggests a PV link doesn't actually parse the string until
iocInit() time.

This actually happens to be an area I've been working on in the last
couple of weeks, and I suspect this ability might fall out of my work,
so I'll see if I can implement something like it.  I'm guessing it may
need changes to the record type code, but that's not certain right now.

** Changed in: epics-base
     Assignee: (unassigned) => Andrew Johnson (anj)

** Changed in: epics-base
       Status: Confirmed => Triaged

-- 
initialize VAL of an mbbi/o record with a string
https://bugs.launchpad.net/bugs/541396
You received this bug notification because you are a member of EPICS
Core Developers, which is a direct subscriber.

Status in EPICS Base: Triaged

Bug description:
With the following record in a db file

record(mbbo,"TEST:mbbo") {
	field(VAL,"Zero")
	field(ZRST,"Zero")
	field(ONST,"One")
}

I get

dbLoadRecords("test.db", "")
Error   Last token ")"
input line:     field(VAL,"Zero")
   in: path "."  file test.db line 2

I think it would be nice to be able to initialize an mbbo or mbbi record with one of the configured string values.

Original Mantis Bug: mantis-373
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=373




Replies:
Re: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string Benjamin Franksen

Navigate by Date:
Prev: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string Andrew Johnson
Next: Re: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string Benjamin Franksen
Index: 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: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string Andrew Johnson
Next: Re: [Bug 541396] Re: initialize VAL of an mbbi/o record with a string Benjamin Franksen
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·