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: | comment a field with a macro |
From: | Alfio Rizzo via Tech-talk <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 7 Aug 2019 15:17:43 +0000 |
Hi, I see some strange behavior when I want to comment
a field in a record if there there are different macros in it
E.g. record(ai, "$(user):PiraniGauge") { field(DESC, "Readback form Pirani Gauge") field(EGU, "Torr") field(VAL, 4e-07) #field(SIML, "$(test):SimulationMode") } When then I load the db, I must defined also the macro $test even if I don’t use it (its commented), Otherwise I will get this warning from the iocsh ………… macLib: macro test is undefined (expanding string # field(SIML, "$(test):SimulationMode") ……….. i.e. I have to write dbLoadRecords("piranig.db","user=me, test=mytest") Is this normal ? why it does not skip the entire commented line ? Thanks Best PhD Alfio Rizzo Control System Integrator Integrated Control Systems Division European Spallation Source ERIC Telephone: +46(0)721792342 Mail Address: P.O Box 176, SE 221 00 Lund, Sweden Visiting address: Odarslövsvägen 113, Lund https://europeanspallationsource.se/ |