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: Questions regarding PV access within CSS |
From: | Abdalla Al-Dalleh <[email protected]> |
To: | "Kasemir, Kay" <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Tue, 1 Mar 2016 10:42:42 +0200 |
Hello Kay Thank you for your response.For the simulated PV I found it in the documentation, I found it straightforward, I did a simple Proof-of-Concept and it should do the thing.
For the PVManager API, I did some search and could not figure out how to use it in a python script, also I did not get much documentation on what API functions available, most of the result I found were on how to use it inside Java code. Do you have any reference on using this API inside a script?
Thanks in advance! Abdalla. On 02/29/2016 04:38 PM, Kasemir, Kay wrote:
Hi:On Feb 29, 2016, at 7:57 AM, Abdalla Al-Dalleh <[email protected]> wrote: Is it possible to read a PV value using its string name?Check the PVManager functions. There’s something like pv(‘name of PV’) for that. In a PVManager formula, you can use (note the backquotes) =`name of PV` + 52nd Related question, as you all know, when you add a script to CSS it is executed (by default) on a trigger from a PV you add. How to have the same idea but without PVs? i.e., executing a script continuously without an external trigger so for example to update a widget's text value.You can use “sim:ramp” as a PV that periodically triggers your script. So it’s still a PV, but one that’s simulated inside CSS. See online help for description on the simulated PV syntax. -Kay