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  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: [CSS] text edit + Go! button
From: "Kasemir, Kay" <kasemirk@ornl.gov>
To: Pavel Masloff <pavel.masloff@gmail.com>
Cc: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 6 Jun 2012 09:36:17 -0400
Assuming a script with PVs loc://value and the_real_pv:

importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
pvs[0].setValue(PVUtil.getDouble(pvs[1]))


Read the online help for more details of scripts, PVUtil.getDouble etc.

-Kay


From:  Pavel Masloff <pavel.masloff@gmail.com>
To:  Kasemir Kay <kasemirk@ornl.gov>
Cc:  "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Subject:  Re: [CSS] text edit + Go! button


What about the second option?
How will the script look like?

On Wed, Jun 6, 2012 at 4:20 PM, Kasemir, Kay
<kasemirk@ornl.gov> wrote:

You could

1) Have the text entry widget write to a PV on the IOC that does nothing,
then have the 'Go' button write to another PV's PROC field, that that
other PV could be an AO record
with DOL = first PV, OUT = final PV.
So pushing the button will actually cause the value from the text to be
written to the final PV.
Can have any number of FLNKs to trigger a whole lot of stuff, and this
would work with EDM, CSS BOY, ...


2) Have the text entry field write to a loc://.. local PV, have the button
run a script that reads from the loc://.. PV and writes to the real PV.
This will only work in CSS BOY, but is much simpler and doesn't require
anything special on the IOC.

-Kay

From: Pavel Masloff
<pavel.masloff@gmail.com<mailto:pavel.masloff@gmail.com>>
To: "tech-talk@aps.anl.gov<mailto:tech-talk@aps.anl.gov>"
<tech-talk@aps.anl.gov<mailto:tech-talk@aps.anl.gov>>
Subject: [CSS] text edit + Go! button

Is there a way in CSS using whatever, but scripts create a text edit
widget and a Go! button, so you first fill in the PV value (nothing
happens), and once you click on the button it writes the text you typed in
one (or a few) records (PVs)?



--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01








-- 
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01



Replies:
Re: [CSS] text edit + Go! button Pavel Masloff
References:
Re: [CSS] text edit + Go! button Pavel Masloff

Navigate by Date:
Prev: Re: [CSS] text edit + Go! button Pavel Masloff
Next: Re: mask for bitwise operation in CALC record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: [CSS] text edit + Go! button Pavel Masloff
Next: Re: [CSS] text edit + Go! button Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·