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  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: #personal#Fw: Error in feching PV from CSS
From: David Michel <[email protected]>
To: Swati Soni2 <[email protected]>
Cc: EPICS mailing list <[email protected]>
Date: Tue, 4 Mar 2014 16:05:43 +0000
Hi Swati,

display.getWidget("t_display").getPV(); 

I didn't know one could do that! The other way is to "link" PVs to your script via the CSS interface (on the right hand side of the window when adding a script) which you can refer to by using an array called pvs[], so the first PV is pvs[0], second is pvs[1], etc.

But I got error "cannot convert Swati_soni_value1_value2 to java.lang.Integer 

Are you calling setValue() at all? If yes, then it looks like the function is expecting a Integer rather than a string.

It's hard to tell what's happening without the full script and the exact error message (incl. the line number where it occurs)

David






 


---
Dr. David Michel
Address: 8 Viking Drive, Didcot, OX11 9RD, Oxfordshire
Mobile: 0789 670 98 01 - Home: 0123 581 46 93


On 4 March 2014 15:23, Swati Soni2 <[email protected]> wrote:
Thanks David,


display.getWidget("t_display").setPropertyValue("text", i+"_"+value1+"_"+value2);


display.getWidget("t_display").getPV();


But I got error "cannot convert Swati_soni_value1_value2 to java.lang.Integer

Thanks & Regards
Swati



Hello All.

I am getting trouble to get value of attached PV from CSS widget. Here is my script:

importPackage(Packages.org.csstudio.opibuilder.scriptUtil);

var i = "Swati_Soni";
var value1 = display.getWidget("text1").getValue();
var value2 = display.getWidget("text2").getValue();

display.getWidget("t_display").setPropertyValue("text", i+"_"+value1+"_"+value2);

From this script I am able to concatenate the two value in textupdate "t_display" (widget shows the output), but the PV attached into it can not get updated with this concatenated value.
Is there any method so that the attached PV of "t-display"can be updated with "Swati_Soni_value1_value2".

text1 and text2 has=ai EPICS record ,whereas t_display has stringin record.

Thanks in advance,
Swati

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



References:
#personal#Fw: Error in feching PV from CSS Swati Soni2

Navigate by Date:
Prev: RE: Battling to start archive.engine on Postgresql db ivan
Next: Autosave upgrade issue Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: #personal#Fw: Error in feching PV from CSS Swati Soni2
Next: Autosave upgrade issue Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·