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: CSS-4.5 : Display-Builder : getting widget's PV value |
From: | "Kasemir, Kay" <[email protected]> |
To: | Amien Crombie <[email protected]>, EPICS Tech-Talk <[email protected]> |
Date: | Thu, 24 Aug 2017 12:56:26 +0000 |
Hi:
What's the data type of the PV? To debug, try adding
print(str(pv.read()))
and then check in the terminal where you started CSS for the output.
-Kay
From: [email protected] <[email protected]> on behalf of Amien Crombie <[email protected]>
Sent: Thursday, August 24, 2017 4:54 AM To: EPICS Tech-Talk Subject: CSS-4.5 : Display-Builder : getting widget's PV value Hi My code : 1. from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil ## 'pv' returns the right pv attached to my 'spinner'. This
pv is passed via the script as '$(pv_name)' ## pval returns 'nan' although my 'spinner' displays the value (1 to 6) depending my last selected value
Thanks Amien
|