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: warnings.warn from raspberry pyepics |
From: | Matt Newville via Tech-talk <tech-talk at aps.anl.gov> |
To: | LE-DANIEL Erwann <erwann.le-daniel at alstomgroup.com> |
Cc: | "tech-talk-request at aps.anl.gov" <tech-talk-request at aps.anl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 19 Sep 2022 11:25:20 -0500 |
True, It works and return values from network during few seconds and after the loop speed decrease and the error message occures.
p = epics.PV(‘TL_AN_Input’)
while True:
val = p.get()
print (val)
time.sleep(0.1)
There is also `epics.get_pv` which will get a cached PV or create one if needed:
while True:
p = epics.get_(‘TL_AN_Input’)
val = p.get()
print (val)
time.sleep(0.1)