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: [EXTERNAL] Re: Is the Sequencer and SNL still widely used? |
From: | "Pearson, Matthew via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Peter Milne <peter.milne at d-tacq.com> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 13 Apr 2023 18:06:01 +0000 |
My goto solution for simple sequencing is the sseq record. I use that for homing routines, motor sequencing, simple logic sequencing, etc. Then revert to SNL for complex sequencing that either requires lots of steps, lots of PVs, complex
error handling, access to C functions, etc. Although there are more options these days for integrating Python into a normal IOC, and it’s likely some of our existing applications could have been implemented in Python with less effort. However, unless you need Python specific features,
or unless the implementation will be significantly easier in Python, I see the Python/SNL choice being determined more by developer preference or site standard practice.
In general, at least for sequencing, I would prefer using SNL to compile a library that I can link to rather than embedding a Python interpreter, particularly for important applications that are expected to be around for decades.
Although, moving away from the sequencing discussion, we do use Python a lot at the SNS, particularly for applications that need things like numpy or scipy, and for experiment-specific applications that tend to be easier to implement in
Python. Cheers, Matt From: Peter Milne <peter.milne at d-tacq.com>
+1 for the sequencer and SNL, we use it a LOT in our embedded system. What's the alternative?. A python program seems rather .. heavy compared to a thread inside the IOC. Thanks
On Thu, 13 Apr 2023 at 17:56, Pearson, Matthew via Tech-talk <tech-talk at aps.anl.gov> wrote:
--
Peter Milne, Director of Sales |