07-23-2019 04:42 PM
Hi,
I'm creating a script to process a range of data channels, what is the easiest way to combine two channels (or more) in a way that the maximuim values are preserved in the result channel
eg
Channel 1 Channel 2 Results Channel
1 5 5
2 6 6
3 1 3
4 2 4
5 5 5
I'm currently using DIAdem 2019 64bit
Solved! Go to Solution.
07-25-2019 04:50 AM
Hey KBramley,
I'm no Diadem expert but would using the Channel Event Search (Free Formula) work for you?
ChnEventResultList = ChnEventFind("A>B", Array("A","B"), Array(Data.GetChannel("[1]/Data"),Data.GetChannel("[2]/Data")))
Call ChnEventCreateFilteredChn("/Results", ChnEventResultList, "[2]/Data", "[1]/Data")
Here I am comparing 2 data sets, and if A > B I replace the data in the results with the corresponding data from B.
(I set this up using the GUI and then used ctrl+shift+c to copy the formula to my clipboard.)
Hope that helps.
Best,
Jelmer
07-25-2019 09:06 AM
Thanks Jelmer that has worked perfectly
Best Regards
Kbramley