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