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

Subject: Re: [EXTERNAL] lso record
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Tue, 10 Sep 2024 13:42:18 +0200
On Mon, 9 Sept 2024 at 21:33, Johnson, Andrew N. via Tech-talk <tech-talk at aps.anl.gov> wrote:

 

If you had used double-quotes in your first .db file this should have worked:

    field(VAL, "blabberblabberblub")


Should have, but doesn't.

With test.db being

record(lso, "lso:short") {
 field(VAL, "this is a short string")
}

record(lso, "lso:long") {
 field(SIZV, 100)
 field(VAL, "this is a very long string that would NEVER fit into 40 characters")
}

record(stringout, "so") {
   field(VAL, "this is a short string")
}

I am getting

ralph@debian-12:~/work/EPICS$ ./3.15.9/base/bin/linux-x86_64/softIoc -d test.db  
Can't set "lso:short.VAL" to "this is a short string"
Error at or before ")" in path "."  file "test.db" line 2
Can't set "lso:long.VAL" to "this is a very long string that would NEVER fit into 40 characters"
ErrordbLoadRecords: failed to load test.db
ralph@debian-12:~/work/EPICS$ ./7.0/base/bin/linux-x86_64/softIoc -d test.db  
Can't set "lso:short.VAL" to "this is a short string"  : Error (512,11)
ERROR:  at or before ')' in path "."  file "test.db" line 2

2 |   field(VAL, "this is a short string")

Can't set "lso:long.VAL" to "this is a very long string that would NEVER fit into 40 characters"  : Error (512,11)
ERROR:  
7 |   field(VAL, "this is a very long string that would NEVER fit into 40 characters")

ERROR failed to load 'test.db'
ERROR: Failed to load: test.db

(Note the double "failed to load" message which is also a - minor - bug.)

I have created issue tickets #548 and #549.

Cheers,
~Ralph


References:
lso record Heinz Junkes via Tech-talk
Re: [EXTERNAL] lso record Hartman, Steven via Tech-talk
Re: [EXTERNAL] lso record Heinz Junkes via Tech-talk
Re: [EXTERNAL] lso record Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Another question regarding record stringout, lso and Record reference manual in general Ralph Lange via Tech-talk
Next: Re: lso record Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: [EXTERNAL] lso record Heinz Junkes via Tech-talk
Next: Re: [EXTERNAL] lso record Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·