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

Subject: RE: Why should I care about breakpoint table monotonicity?
From: Emmanuel Mayssat <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 21 Nov 2013 17:34:19 -0800
Well it seems I cannot even build non monotonic tables!!!

epics2@cls1dev11 $ cat bptTypeKdegX.dbd
breaktable(typeKdegX) {
        0.000000 0.000000
        100.0 50.000000                                       # <-- Positive slope everywhere
        200.0 250.000000
        300.0 300.000000
        400.0 400.000000
        500.0 250.000000                                     # <-- Negative slope
        600.0 300.000000
        700.0 700.000000
        800.0 900.000000
}

epics2@cls1dev11 $ make
perl /home/local/epics/base/3.14.11/bin/linux-x86/makeMakefile.pl O.linux-x86 ../../..
mkdir O.Common
make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
make[1]: Entering directory `/home/cls1fs/epics/2/git/epics-iocs/cls1/drv/records/bpt/O.linux-x86'
perl /home/local/epics/base/3.14.11/bin/linux-x86/makeIncludeDbd.pl bptTypeJdegC.dbd bptTypeKdegC.dbd bptTypeKdegX.dbd ../O.Common/recordsBptInclude.dbd
Expanding dbd
/home/local/epics/base/3.14.11/bin/linux-x86/dbExpand  -I . -I .. -I ../../../dbd -I/home/local/epics/base/3.14.11/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/asyn/4-12-20110127_113101/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/autosave/4-5-20110127_112910/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/calc/2-7-20110127_113028/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/genSub/1-6a-20110127_112851/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/seq/2-0-12-20110127_112811/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/sscan/2-6-5-20110127_112958/dbd -I/home/local/epics/extras/3_14_11-20100623_104822/stream/2-4a-20110127_113215/dbd -o ../O.Common/recordsBpt.dbd ../O.Common/recordsBptInclude.dbd
Error: breaktable slope changes sign
    at or before "}" in path ".."  file "bptTypeKdegX.dbd" line 11
 in file "../O.Common/recordsBptInclude.dbd" line 3
dbExpand: Input errors, no output generated
make[1]: *** [../O.Common/recordsBpt.dbd] Error 1
make[1]: Leaving directory `/home/cls1fs/epics/2/git/epics-iocs/cls1/drv/records/bpt/O.linux-x86'
make: *** [install.linux-x86] Error 2

Why?
Is there a work around?


--
Emmanuel



From: [email protected]
To: [email protected]
Subject: Why should I care about breakpoint table monotonicity?
Date: Thu, 21 Nov 2013 16:29:03 -0800


Hello all,

I am currently playing with ai and ao records breakpoint tables.
Documentation is rather sparse on how to implement them.
http://www.aps.anl.gov/epics/EpicsDocumentation/AppDevManuals/RecordRef/Recordref-5.html#MARKER-9-12

I found a couple of interesting emails on the tech-talk mailing list.
Including:
http://www.aps.anl.gov/epics/tech-talk/2010/msg02152.php
(Thank you Stephanie!)

and another
http://www.aps.anl.gov/epics/tech-talk/2010/msg01896.php
"This is a bit of a pain, so I just wrote a blueprint to look at adding the table names to menuConvert automatically in future releases. - Andrew"
Has this been implemented in >3.14.11 ?

But my real question is this: why should I care about the monotonicity of the data in the breakpoint table?
Apparently, I have to set a iocsh variable to 1
"var dbBptNotMonotonic 1"
How does this impact monotonic tables?
Why not always set it to 1?
Why do I need to set it?

(I can only imagine that it has to do with RVAL to VAL conversion .... and VAL to RVAL conversion which may return more than one value.)

Thanks,
--
Emmanuel

References:
Why should I care about breakpoint table monotonicity? Emmanuel Mayssat

Navigate by Date:
Prev: Why should I care about breakpoint table monotonicity? Emmanuel Mayssat
Next: RE: Why should I care about breakpoint table monotonicity? Hartman, Steven M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Why should I care about breakpoint table monotonicity? Emmanuel Mayssat
Next: RE: Why should I care about breakpoint table monotonicity? Hartman, Steven M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·