EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Drawing on XY graph widget without the use of a PV in CSS
From: "Abdalla Ahmad" <[email protected]>
To: Márcio Paduan Donadio <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 10 Aug 2016 07:51:23 +0000

How to use these variables loc://x and loc://y ? I added them as input PVs to the script but it gives me loc://x has a null value. Am I missing something?

 

Best Regards,

 

Abdalla Ahmad

Control Engineer

SESAME

Allan, Jordan.

Tel: (+962-5) 3511348 , ext. 265

Fax: (+962-5) 3511423

Mob: (+962-7)88183296

www.sesame.org.jo

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of M?rcio Paduan Donadio
Sent: Monday, August 08, 2016 3:38 PM
To: [email protected]
Cc: Márcio Paduan Donadio <[email protected]>
Subject: Re: Drawing on XY graph widget without the use of a PV in CSS

 


    You can use loc variables in X PV and Y PV parameters. Eg: loc://x and loc://y.

    Inside the script you can do something like this:

from java.util import Arrays
from jarray import zeros
from java.lang import Double

x = zeros(NUM_OF_STEPS, Double)
y = zeros(NUM_OF_STEPS, Double)

for i in range (NUM_OF_STEPS):
    x[i] = 0
    y[i] = 0

# Do processing....

pvs[0].setValue(x)
pvs[1].setValue(y)


-- 
Márcio Paduan Donadio
Engenheiro de Computação - Software de Operação das Linhas de Luz
Laboratório Nacional de Luz Síncrotron – (LNLS)
Centro Nacional de Pesquisa em Energia e Materiais (CNPEM)
+ 55 (19) 3512-3520 - [email protected]
www.lnls.cnpem.br
 
 
------------------------------------------------------------------

Hello

 

Is it possible to draw some data on an XY graph widget from a script/rule without using a PV? I mainly tried setting the property 'pv_value' but nothing appears on the graph. I'm not sure if this is even possible or not. The thing is I will receive a waveform PV value and I want to do some processing on it then displaying the output on the XY graph.

 

Best Regards,

 

Abdalla.

 

Replies:
Re: Drawing on XY graph widget without the use of a PV in CSS Pearson, Matthew R.
References:
Re: Drawing on XY graph widget without the use of a PV in CSS Márcio Paduan Donadio

Navigate by Date:
Prev: Query palak shimpee
Next: Re: Drawing on XY graph widget without the use of a PV in CSS Pearson, Matthew R.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Drawing on XY graph widget without the use of a PV in CSS Márcio Paduan Donadio
Next: Re: Drawing on XY graph widget without the use of a PV in CSS Pearson, Matthew R.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·