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: Using PVUtil to get PV's value when PV name is input as string in CSS |
From: | Tyler Lemon via Tech-talk <[email protected]> |
To: | Davide Marcato <[email protected]>, "[email protected]" <[email protected]> |
Date: | Tue, 14 May 2019 12:11:33 +0000 |
Hi Davide,
I'm trying to create the PV names from parameters inside the script because the channels displayed on the screen are defined by a configuration file that will be updated as channels are added or removed. The idea was to have a script get the PV names rather
than passing all of the required PVs as inputs to avoid having to type in all the channels and again to make it easier to update the screens if the channel configuration changes.
From the replies it seems that the best way is to use pyepics or some other outside software to generate the final array that is displayed by the screen.
Thank you for your advise.
Best regards,
Tyler
From: Davide Marcato <[email protected]>
Sent: Tuesday, May 14, 2019 3:58 AM To: Tyler Lemon; [email protected] Subject: Re: Using PVUtil to get PV's value when PV name is input as string in CSS Hello,
why are you trying to create the PV names from a parameter inside the script? If you pass all the required PVs as inputs to the script your code may work. By the way, in my opinion a better solution would be to do this kind of stuff with a dedicated script running somewhere on the network, and not in the GUI. If you don't have access to the original IOC you can use pyepics to create a simple script to concatenate values from different PVs to a single array, and then launch it as a daemon. Davide On 13/05/19 7:14 PM, Tyler Lemon via Tech-talk wrote:
-- Davide Marcato INFN - Laboratori Nazionali di Legnaro Viale dell'Universita', 2 35020 Legnaro (PD) - ITALY Phone: +39 0498068439 Mail: [email protected] |