Experimental Physics and Industrial Control System
Hi,
I have a waveform record setup as array of char (to support long string) and I'm trying to write a string to it via BOY Action button. I setup a "Write PV" action in the widget but the string does not get written, so perhaps long strings are not supported in BOY actions (it works for Text Inputs).
I tried a Javascript code to convert the string to an array of char via the following code:
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
var strArray = DataUtil.createIntArray(10);
var pv = widget.getPV();
var strText = "this is a test";
for(var i=0; i<strText.length; i++) {
strArray[i] = strText.charCodeAt(i);
}
pv.setValue(strArray);
but the script throws an exception in BOY's console "Wrapped java.lang.Exception: Cannot handle type [I".
Is there any way in BOY to write a string to a waveform record as an array of char (support long strings)? I'm using SNS CSS 3.0.2 (Basic) for MacOSX.
Thanks in advance,
Juan.
----------
Juan Carlos Guzman
Software Engineer
Australia Telescope National Facility
CSIRO Astronomy and Space Science
P.O.Box 76, Epping NSW 1710, Australia
Phone: +61 2 9372 4457
Fax: +61 2 9372 4310
Email: [email protected]<mailto:[email protected]>
- Replies:
- Re: Writing long strings PV in BOY John Hammonds
- Navigate by Date:
- Prev:
Gateway binary distribution available for RedHat 5.5 ZYCHLA Emmanuel
- Next:
Re: Writing long strings PV in BOY John Hammonds
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Gateway patches (CMake) Ralph Lange
- Next:
Re: Writing long strings PV in BOY John Hammonds
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024