LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

chart removing samples

Hello all,
 
I am building a scope in LabVIEW 8.2 in combination with a NI 6221 DAQ.
I want to delete some data from my DAQ because I do not want do display all the data in the scope to prevent a too high refresh rate.
 
The first option is to write data to the scope untill it is full. Then delete data and not writing it to the scope and after that write data to the scope again and so on.
The problem is that the data of the second last view is plotted at the beginning of the last scope view (Scoop.PNG). And the raster of the scope start to flicker at high refresh rates.
The benefit is that the cpu usage is about 10%.
 
The second option is to write data to the scope untill it is full. Then delete data and not writing it to the scope and after that clear the history of the chart and write data to the scope again and so on.
The problem is that the cpu usage is about 50%, much to high. This is because of clearing the history every time.
The benefit is that the data is displayed correctly and there is no flickering of the raster anymore.
 
The source code is in the Diagram1.PNG and Diagram2.PNG. The function with a red box around it deletes the data and return a true boolean if the chart has to be cleared.
 
Who has got any solutions for these problems?
 
Thanks, NacNud
 
 
 
Download All
0 Kudos
Message 1 of 3
(2,641 Views)
Sorry did not know how to attache files immediately.
 
 
 
 
 
 
0 Kudos
Message 2 of 3
(2,637 Views)
I found the solution myself.
Writing an array with a value "NaN" instead of a number places an empty spot in the chart.

Message Edited by NacNud on 12-22-2006 07:07 AM

Message 3 of 3
(2,574 Views)