Error in feching PV from CSS

24 views
Skip to first unread message

ssswat...@gmail.com

unread,
Mar 4, 2014, 3:30:35 AM3/4/14
to css...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages