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 2024 | 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 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: record field max length? |
From: | William Kirstaedter via Tech-talk <[email protected]> |
To: | "Johnson, Andrew N." <[email protected]>, "[email protected] Talk" <[email protected]> |
Date: | Thu, 13 Dec 2018 09:46:10 +0100 |
unlimited cant be the case, unfortunately. I'm running EPICS7 and facing the following error when starting the IOC: 2018/12/13 09:42:51.409543 _main_
Missing ')' after substitutions
'readModule(EN,CRYVISIL:LEED:ENgain,CRYVISIL:LEED:ENoffset,CRYVISIL:LEED:ENvalue,LEED_01' with these records and streamprotocol: # Energy record(stringin, "$(P):$(R):getEN") { field(DTYP,"stream") field(INP,"@leed.proto readModule(EN,$(P):$(R):ENgain,$(P):$(R):ENoffset,$(P):$(R):ENvalue,$(P):$(R):ENmonitorU,$(P):$(R):ENmonitorI) $(PORT)") }
record(ai, "$(P):$(R):ENgain") { field(DESC,"Energy Gain") field(EGU,"eV") field(PREC,"2") } record(ai, "$(P):$(R):ENoffset") { field(DESC,"Energy Offset") field(EGU,"eV") field(PREC,"2") } record(ai, "$(P):$(R):ENvalue") { field(DESC,"Energy Value") field(EGU,"eV") field(PREC,"2") } record(ai, "$(P):$(R):ENmonitorU") { field(DESC,"Energy Voltage Monitor") field(EGU,"eV") field(PREC,"2") } record(ai, "$(P):$(R):ENmonitorI") { field(DESC,"Energy Current Monitor") field(PREC,"2") field(EGU,"A") } ------------ OutTerminator = CR; InTerminator = "\r\000\n>"; readModule{ # $1 : Module Name -> REN (read energy) out "R\$1"; # answer: R $1 r NUL n $1 (what out "typed in" plus return) $1|SP|GAIN|SP|OFFSET|SP|VALUE|SP|U-monitor|SP|I-monitor (the actual answer) # >REN # EN +0 +500 +500 +500.85 +1.5653E-06 in "R\$1\r\000\n\$1%(\$2)f%(\$3)f%(\$4)f%(\$5)f%(\$6)f"; } William Kirstaedter (PP&B) Fritz-Haber-Institut der MPG Faradayweg 4-6 14195 Berlin Tel: 030 8413 5405 Mail: [email protected] Am 12.12.2018 um 17:29 schrieb Johnson,
Andrew N.:
On 12/12/18 8:59 AM, William Kirstaedter via Tech-talk wrote: |