LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Chart

Hello all,

 

This is my case: in my program I work online , every 50 ms ( 50 samples (say the Sample Rate is 1000)) I get a two buffers , the first one is the signal, and the other one is peaks of the signal (as found by peak detection).

I want to plot them into a predefined history chart , that will be updated each 50 ms with the new buffers while plotting the peaks (without the option of plotting zero values whenever no peak was detected).

Could you please help me with a gentle solution - a detailed one. I am stuck with this problem and I need to solve it urgently.

( I am not allowed to work with Global Variables or Express VIs).

 

Thanks in advance,

Hanan

0 Kudos
Message 1 of 2
(2,200 Views)

You can use a standard chart with two plots (you use either an array or a cluster to have multiple plots, I don't remember). If you want to avoid plotting the non-peaks, give them a value of NaN and they will not be displayed.

 

The other alternative is to maintain a circular buffer yourself and use an XY graph to display it, which seems to be what you want. If you search for "XY Chart" you should find some examples. Today, the easiest way of handling this is to use a sized queue with a lossy enqueue and preview the queue to get the data.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,194 Views)