09-16-2009 07:06 AM
Dear all,
I am working on data analysis VI and I have a problem with data repository. The situation now is the following: VI analyses data from several measurement sites and in each site there are several measurement points including two measured values e.g. 10 sites, 10 points in each site, 2 values in each point. Now VI uses 3D-array which is practical enough for viewing purposes, but problems arise when user wants to trim the data, discard some points. Then the subarrays have different dimensions that does not work. The number of the sites and the number of meusurement points are dynamic, dependent on user's choice (could be hundreds). So I can't make the repository structure ready in advance, it must be programmatically controlled.
My goal is working VI which enables the user to discard different amout of points in each site and view the orginal data and also trimmed data from all sites in same time. What is the best data structure for my needs?
Description was more or less tangled, questions are more than welcome. My new LabVIEW user, so this may be simple and stupid question but I have worked on it for awhile without any decent solution.
Thank you in advance.
09-16-2009 07:22 AM
For reasons which you just discovered, it isnt good to completely discard values from an array.
This can lead to having arrays of different lengths so they arent plotted correctly.
Whenever I need to remove data points, instead of removing them, I replace them with NaN.
This maintains the size of the array, but ignores the NaN points.
09-16-2009 10:12 AM