DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

calculate delta X when Y has a value

Hi all, 

 

I have a dataset with two channels: (1) a signal which has boolean values (1/0) and (2) time. I want to eliminate the noise of this signal, so I mean giving a value of 0 to the signals which last less than 2 minutes. I guess that first of all, I need to calculate the delta X when Y=1 and once I have can eliminate the smallest values. Do you know which functions could I use for calculating that?

 

Capture.PNG

 

Thanks

 

Estefania M

0 Kudos
Message 1 of 4
(4,168 Views)

Hi Estefania,

 

What DIAdem version are you using?  DIAdem 2015 has new ChnEvent...() functions that would be the best way to handle this.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 4
(4,132 Views)

Hi Brad, 

 

I am using Diadem 2012. Does it have any function to handle this?

 

Thanks

 

Regards

 

Estefania

 

 

0 Kudos
Message 3 of 4
(4,129 Views)

Hi Estefania,

 

With DIAdem 2014 and previous you will need to use the ChnFind() command to identify the row where the signal is 1, then use it again to determine the next row where the signal is 0, then calcualte the delta time between the two rows to determine if this is signal or noise.  You'll need to put all that in a loop to search for multiple 0-1-0 events.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(4,109 Views)