03-28-2017 07:10 PM - edited 03-28-2017 07:16 PM
Hi,
I'm trying to use the ChnPeakFind() function in a script to loop through i = 1 to N channels and every ith channel append the location of the peak (result of ChnPeakFind) to the end of a result channel. Anyone know how to do this? My script just overwrites the value of the result channel each iteration of the loop...
03-29-2017 04:46 AM
for x = 1 to 5
set oMyChnx = Data.Root.ActiveChannelGroup.Channels(x)
oMyChnx(chnlength(x)+1) = cch(x,2)
next
Regards
03-29-2017 08:56 AM
Hi Traderhans,
Thank you for the response. It appears the CCh() function returns the peak, but not the location (X Value) of the peak. Still, good to know this function exists!
Thanks,
Chris