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 <2025> | 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 <2025> |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: EPICS CA Gateway Aliases |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Smith, William" <william.smith at helmholtz-berlin.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 13 Jan 2025 17:47:20 +0000 |
Hi William, The ALIAS syntax requires you to specify the alias name using back-references
\1 \2 etc. The exact pattern syntax depends on which regex engine you’re using. Our gateways are built using the GNU regex library, here are some examples from one of our pvList files: ^Mt:S:NumBucketsFilledAI\(.*\) ALIAS XFD:NumFilledBuckets\1 ^Mt:S:FilledBucketsWF\(.*\) ALIAS S-INJ:ActiveBucketFillQueueArrayM\1 ^Mt:S:FillPatternWF\(.*\) ALIAS XFD:FilledBuckets\1 ^S:BeamStatusMBBI\(.*\) ALIAS XFD:BeamStatus\1 ^S:InjectingStatusMBBI\(.*\) ALIAS XFD:InjectingStatus\1 If you’re using PCRE you won’t use back-slashes before the capturing parentheses on the left, but your back-references on the right side should be the same. Our configuration doesn’t specify an asg or asl for these PV names, you’ll add
those as necessary. HTH, - Andrew -- Complexity comes for free, Simplicity you have to work for. |