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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Math on Wavefrom PV in CSS |
From: | "Shroff, Kunal" <[email protected]> |
To: | Miroslav Gabriel <[email protected]>, "[email protected]" <[email protected]> |
Date: | Tue, 16 Feb 2016 16:46:26 +0000 |
Hello Gabriel, The currently the numerical operator "/" only works with scalars
In order to process waveforms you have to use the formulas specifically designed to deal with arrays =arrayDiv('PV_waveform', 500) =arrayDiv ('PV_waveform', 32512) * 'PV_scalar' You can find the complete list of array formulas (and many others) under CS-Studio -> Debugging -> Formula functions -> array -----Original Message----- Dear all, my question is related to CSS and BOY. I have a waveform PV of 16 bit integers which I'm displaying in a XY graph which is working fine. But now I want to scale all the values and do some math on them but the syntax seems to be wrong: ='PV_waveform'/500 for example is working on scalar PVs, but not on waveforms. What am I doing wrong? What I want to do in the end is the following: ='PV_waveform'/32512 * 'PV_scalar' Any help would be greatly appreciated! Regards, M. Gabriel |