DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Add delimiters in "AddCalculationChannel" formula

Hi,

 

I am trying to merge the content of three channels into a new one by using  "AddCalculationChannel" method.

It is working fine with the below formula:

Data.Root.ChannelGroups(i).Channels.AddCalculationChannel("Result", "=Status & Cycle & Temp")

 

...and my data:

SorinP_0-1638537080683.png

But I need a delimiter (on the Result channel) between the content of the three channels like that: "OK-1-70"

The result "OK170" is not so convenient for me.

I couldn't find any formula to add a delimiter btw the contents, any string constant in the formula results in a 0 output.

 

0 Kudos
Message 1 of 3
(1,137 Views)

Hi SorinP,

 

This calculation channel is designed to support calculations with channels. Adding a single character does not work. But you can create a text channel which contains the delimiter character and add this channel to the formula.

 

Greetings

Walter

Message 2 of 3
(1,085 Views)

Thank you Walter, I will create a single delimiter channel and use it wherever I need.

 

Regards,

Sorin

0 Kudos
Message 3 of 3
(1,082 Views)