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