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: Multiple sequencer instances undesirably sharing information |
From: | Jure Varlec via Tech-talk <tech-talk at aps.anl.gov> |
To: | Talk EPICS Tech <tech-talk at aps.anl.gov> |
Date: | Tue, 14 Feb 2023 13:30:59 +0000 |
I'd like
to add a couple of points here. First, while the sequencer program options can be specified in the Makefile, they change the semantics of the program so much that it is better to declare them in the program itself;
they are effectively part of it. Changing them may require a redesign of the program.
Second, and more importantly, I suggest you always specify the +s option, which enables safe mode [1]. Apart from enabling cool
stuff like anonymous channels (which are much easier to use than synchronizing with event flags), it ensures your variables are only updated at well-defined times. And that's critically important! Without the +s flag, it's possible for a monitored variable
to change its value at any time. You can't reason about your program logic in such a situation.
Just a couple of cents from someone who observed variables change values in the middle of an action block and couldn't
believe that +s was only introduced in version 2.1.
Best,
JureFrom: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Marco A. Barra Montevechi Filho via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, February 8, 2023 23:18 To: Pete Jemian <jemian at anl.gov>; Mark Rivers <rivers at cars.uchicago.edu> Cc: SWC <swc at lnls.br>; Talk EPICS Tech <tech-talk at aps.anl.gov> Subject: Re: Multiple sequencer instances undesirably sharing information
Thanks, i was looking at this: https://www-csr.bessy.de/control/SoftDist/sequencer/Reference.html?highlight=option#option
but its also in there, so anyway there is that. Best regards, Marco From: Pete Jemian <jemian at anl.gov>
Sent: 08 February 2023 19:16 To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; Mark Rivers <rivers at cars.uchicago.edu> Cc: SWC <swc at lnls.br>; Talk EPICS Tech <tech-talk at aps.anl.gov> Subject: Re: Multiple sequencer instances undesirably sharing information +r is in this documentation:
https://epics.anl.gov/EpicsDocumentation/AppDevManuals/Sequencer/snl_1.9_man.html On 2/8/2023 4:15 PM, Marco A. Barra Montevechi Filho wrote: > https://epics.anl.gov/EpicsDocumentation/AppDevManuals/Sequencer/snl_1.9_man.html <https://epics.anl.gov/EpicsDocumentation/AppDevManuals/Sequencer/snl_1.9_man.html> > -- ---------------------------------------------------------- Pete R. Jemian, Ph.D. <jemian at anl.gov> Beam line Controls and Data Acquisition (BC, aka BCDA) Advanced Photon Source, Argonne National Laboratory Argonne, IL 60439 630 - 252 - 3189 ----------------------------------------------------------- Education is the one thing for which people are willing to pay yet not receive. ----------------------------------------------------------- Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente. Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately. |