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  2014  2015  <20162017  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  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== 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-----
From: [email protected] [mailto:[email protected]] On Behalf Of Miroslav Gabriel
Sent: Saturday, February 13, 2016 11:51 AM
To: [email protected]
Subject: Math on Wavefrom PV in CSS

 

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


References:
Math on Wavefrom PV in CSS Miroslav Gabriel

Navigate by Date:
Prev: Code-a-thon/Meeting/Training April 4-8 Eric Berryman
Next: RE: CSS PVManager/Diirt - Waveform of Characters to String Shroff, Kunal
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Math on Wavefrom PV in CSS Miroslav Gabriel
Next: CSS PVManager/Diirt - Waveform of Characters to String marcus . michalsky
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·