DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Channels Containing NoValues

Solved!
Go to solution

I am trying to analyse some data which has been collected by 2 devices. The data has breaks in it and the values are not monotic. I have generated a new timeline and used ChnMapLinCalc to map the more monotic data to my new timeline. This has produced three channels, each containing NoValues but with data at the correct time. When I use ChnAdd to add these channels together I get all NoValues, as if NoValues + data = NoValues. How can I add these together as though NoValues were zero?

0 Kudos
Message 1 of 5
(4,854 Views)
Solution
Accepted by topic author RogerC

Hello Roger,

 

It sounds like the"Process NoValues" function in DIAdem ANALYSIS would help you.

 

Change to the ANALYSIS panel, select the "Channel functions" and the last function there is called "process NoValues".

 

The "Replace" option is the one you want. Simply replace the NoValues with "0" and you should be good to go for your calculation.

 

Let me know if that helped,

Otmar D. Foehner
0 Kudos
Message 2 of 5
(4,853 Views)

Hi,

 

I am having a similar problem whilst trying to add two channels, one of which contains NoValues. However, when I use the Process NoValues on the Channel Functions tab, I only get the option to either delete the NoValues, or interpolate them. There is no other option to replace the NoValues with zeroes, which is what I require.

 

Is this because I am using DIAdem 10.1, and the replace option is in a newer release?

 

Thanks

0 Kudos
Message 3 of 5
(4,574 Views)

Hello KJ2,

 

This is the screen shot from version 11.1, which shows all three options. The "replace" option might have been added for version 10.2 or version 11. I don't have version 10.1 to check.

 

You can download a version 11.1 evaluation copy from http://ni.com/diadem to test.

 

 

novalue.jpg

 

Alternatively, you can probably also replace the NoValues in a channel with "0" using a VBS Script. That might be a little slower, but should work.

 

Best regards,

 

Otmar D. Foehner
0 Kudos
Message 4 of 5
(4,570 Views)

Hi Otmar,

 

Thanks for the reply. I've managed to get on to v10.2, and the "replace" option is available, so it clearly must have been added for this version.

 

Many thanks for your help.

0 Kudos
Message 5 of 5
(4,556 Views)