02-26-2017 07:25 AM
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
02-27-2017 07:32 AM - edited 02-27-2017 07:35 AM
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.
02-27-2017 07:46 AM
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