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: Accessing PVs in javascript.
From: "Kasemir, Kay" <[email protected]>
To: Tim Waclawski <[email protected]>
Cc: "<[email protected]>" <[email protected]>
Date: Tue, 8 Jul 2014 13:11:09 +0000
Hi:

Have you checked any of the BOY examples included in CSS, or the online help?
Basically, it goes like this:
* Add a script
* Add input PVs to the script
* Access their value via PVUtil.getDouble(pvs[0]), PVUtil.getDouble(pvs[1]), … to access the first, second, .. input PV of the script.
See also screenshots here: http://aps.anl.gov/epics/docs/USPAS2014/1-Monday/CSS_4_BOY_Details.pdf

Note, however, that using scripts should be the last resort.
We start to see people implementing interlock logic, logging, ramping, .. generally IOC functionality inside BOY scripts, which is a very bad idea.
The most prominent use case should be:
Add widget, set PV name, done.
Maybe adjust some properties like "alarm sensitive border = False".
If you have a rule in some very special *.opi to for example highlight a certain machine state, that's OK.
On the other hand, if you need a script in pretty much every of your *.opi, something is wrong.

Thanks,
Kay

 
On Jul 6, 2014, at 5:17 PM, Tim Waclawski <[email protected]>
 wrote:

> Hello,
> 
>  I've been trying to write a javascript file for a GUI for a particle detector created in CSS BOY. I've been having trouble reading PVs into the script from my softioc. The issue does not lie with EPICS, all of my widgets etc are functioning as they should and I can caget/put from the terminal. I've also tried googling around but I am getting no where.
> All I require is the contents of the VAL field of the EPICS record to be read into the script. The fix for this must be very simple but I cannot get this to work.
> 
> Kind regards,
> Tim



References:
Accessing PVs in javascript. Tim Waclawski

Navigate by Date:
Prev: ICS 8065 and Agilent E5810A Ethernet/GPIB Converter Failure Weiwei Lu
Next: New standards for small and medium sized astronomical observatories Piotr Sybilski
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: Accessing PVs in javascript. Tim Waclawski
Next: spinner 吴煊
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 ·