LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast Data Display with Decimation (XY Graph)

There is an excelent NI application note detailing how to efficiently display large amounts of data on a graph by utilizing a decimation algorithm; however, the example code is designed for fixed-rate sampling. Has anyone written code that would be applicable to variable-rate sampling?

Inputs: XY data arrays, graph width
Outputs: reduced XY data arrays

(NI Developer Zone > Development Library > Measurement and Automation Software > LabVIEW > Development System > Optimizing Applications > Managing Memory > Managing Large Data Sets in LabVIEW)
0 Kudos
Message 1 of 2
(3,710 Views)
Hi,

That is a very good question. I have not seen an example like that. The main changes that you would need to implement is the way you create you array of min/max. You can use the index of the min and max values to extract a value form the X array. Now you can save that pair into the array in the right order.

I hope this helps. Let me know if you have any questions.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(3,710 Views)