01-15-2014 03:52 PM
After displaying a single contour plot a number of times, LabVIEW crashes and reports a memory overflow error. I only load a single 2D array, never storing previouls ones. I always index the data for contour plot 0, and don't explicitly store multiple 2D arrays in any buffer, such as appending data to a shift register. There appears to be some sort of memory leak in LV when using this feature. Is there a programatic way to flush the stored data in a contour plot prior to displaying the next 2D array of data?
01-15-2014 04:06 PM
Hello MicTomReiSr,
Is this in the LabVIEW development environment? Are you making changes to the code and then running the VI? Does the plot contain default data? Is the indicator cleared when the program stops? The Plot Clean Data method may be what you're looking for.
Remember that the development environment maintains an undo history of the changes you've made, and copies both the block diagram and FP contents each time. If you have a lot of data displayed on the front panel you end up copying it multiple times. This isn't a problem unless you're actively editing the VI in question.
If you do need to edit and run the VI at the same time (perfectly reasonable, although you might want to consider a 64-bit installation or more RAM if you commonly work with resource-intensive data types like 3D plots) try reducing the Undo history length (Tools>>Options), although be aware that you won't be able to back up as many steps.
Regards,