02-05-2015 02:00 PM
Hello,
I have a problem with some of my measures. I attached a "normal" measure and some of these "weird" measures to this post.In a normal measurment, I have one broad peak measured but in some of the measures I have two peaks separated by 0 values. What I would need, is to delete all the measurment points that are between the two measurment peaks, since there should be only one single, broad peak.
Has anyone a hint on the functions I could use?
Thanks in advance for the help.
02-09-2015 10:18 AM
Hello Josq,
If I understand your question correctly I would suggest to set the Band cursor und set a flag.
Afterwards you can delete the points in this area.
To merge the peaks, you can use scripting.
best regards
Richard
02-09-2015 11:00 AM
Thank you Richard20 for your reply,
I am trying to use a script to merge the peaks, but am not sure of what function I should use. Using a trigger would not work since I pass the trigger (0) multiple times.
If you have any other suggestions...
02-10-2015 02:50 AM
Hello josq,
you can filter the values near zero.
For example you filter channel 1, if value is not zero you can put the value into another array/channel.
At the end you have an array/channel 2 without all the values near zero.
That is just a suggestion. Perhaps there is a better solution.
Have a nice day
Richard
02-11-2015 07:52 PM
Hi Josq,
My personal favorite to deal with bad values, is to use the NoValue Handler
It is used with two commands. One to convert the bad values to Novalue and the second command directs how to handle Novalues.
You can see the help page by searching for "Searching for and Interpolating Invalid Values"
No values can either be deleted or the value interpolated from the existing data points around the novalue.
The command to change values to novalue is:
Ch("Group2/Result") = Ch("Group1/Input")+CTNV(Ch("Group1/Input")>10)
This is the command that will either remove or interpolate the values.
Call ChnNovHandle("Group/Channel1","Group/Channel2","Delete","X",False,False)
Paul