DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

adding two channels

Hello
Is there a command to add the values of two channels. My channels are huge and adding them using a loop takes too long.
For example if
channel 1 has "1,2,3"
channel 2 has "1,1,1"

I want to create a new channel with "2,3,4" by adding the values of the first two channels
Anne
0 Kudos
Message 1 of 3
(3,501 Views)
Hello Anne,

the easiest way is to use the calculator (This is the calculator icon in the device ANALYSIS). In this module you can define your own formulas.
Assuming the name of the first channel is "Channel 1" and the name of the second channel is " Channel 2" the formula in your case could be:

ch("Sum"):=ch('Channel 1')+ch('Channel 2')

The performance of such calculation is much higher than a self written script because in these formulas the loop is calculated internally.

Regards,

Stefan
0 Kudos
Message 2 of 3
(3,496 Views)
Thanks Stefan
It works fine.
0 Kudos
Message 3 of 3
(3,483 Views)