Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

signal conditioning

Hello,

 

I have a 1D array of sensor's samplings, I plotted it in waveformchart and I need to add another graph in there, which will contain only the points when the samplings equal 0 and in the correct time. for example I attched a picture

 

 

 

Thank you in advance

0 Kudos
Message 1 of 3
(2,844 Views)

Be careful comparing a sensor signal (floating datatype?)  to equal zero (or any other value) 😉

 

I would try the Threshold Detection.vi (signal operation palette) , it looks for peaks but if you simply invert your data at set a threshold close to zero you should get the indices you look for. (Read the help)

 

The mixed signal graph will allow you to combine different signal types like wfrm and XY data 😉  so I could have used a wfrm for my first plot.

 

findzeros.png

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(2,785 Views)

If you need to use a chart: add a second plot and only add non NANs when you are close to zero.

Updated my vi

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(2,782 Views)