From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XYGraph: export minimized data set for same plot form

hello all

 

we are loading about 50'000 data points into a XY Graph.

Assuming that the graph is 1'000 pixel wide and the line width of the plot is in minimum 1 pixel, we see about every 50th value when looking at the whole horizontal range of the data set.

that's fine.

 

now we would like to export the data into a further processing where only the visual aspect of the plot is important.

if we use the initial data set of 50'000 values it needs much time. and most of the data is not important (not visible) because there are stucked, hidden behind the 1'000 visible data points.

so we look for a way to use only the most important values, the 1000 points which are shown as own pixels in the forground. like the plot itself when exporting it to a bitmap for example.

 

filtering out every 50th point does not seem a good way because the original form of the plot can be tampered. we assumed it at least and think that is not the way Labview handles the graph visualisation.

 

Does anyone know how Labview builds and optimize the graph build up or how a minimized data set with the same plot form can be made out of the whole set?

 

thanks for any help

best, mischl

0 Kudos
Message 1 of 3
(2,682 Views)

Hi,

 

the algorithm how Labview builds and optimize the graph is not published. Attached you find an example how you can minimize data for export. A typical usage in application is therefore finding peaks, which could be filtered out by the actual graph visualizaiton. 

 

Dont heasitate to ask again if you have any new quesitons concerning the subject.

 

 

Best Regards, Fabian

0 Kudos
Message 2 of 3
(2,585 Views)

Hi Fabian

 

Thanks for your post and the example.

We will examine it and come back, in meantime we have hat an own idea.

Are you a native german speaker? We also, based in Switzerland.

 

Best, mischl

0 Kudos
Message 3 of 3
(2,556 Views)