12-18-2007 11:31 PM
12-18-2007 11:49 PM
Please attach the real VI and an example data file. It is impossible to troubleshoot from a clipped image of the block diagram.
12-19-2007 12:27 AM
Hi,
Please see the attached sample code in Zip format
12-19-2007 01:55 AM - edited 12-19-2007 01:57 AM
OK, this is going to be tough! The diagram is way too big to for any serious debugging and In don't have any of your hardware so I cannot run the VI. At what point does the memory problem occur? Righ after start or after a while?
You are completely misunderstanding the spirit of dataflow programming and are using value property nodes for everything. This is very expensive because these are synchronous. Let's have a quick look at the "info bar" subVI. All controls and indicators are not connected to anything and all code is interfaced to them via value property nodes. You use 10 property noes where NONE are needed. This is just an example, that problem is pervasive throughout your entire program.
Here's an image of your code and a quick alternative that does NOT use any property nodes.
Your outer event structure has no purpose because it is not in any loop and thus cannot service any events once one event has occurred. Every later event (e.g. mouse down on the tab control) will get queued up until eternity. Not good!
You are writing to a signaling property of the "sine" graph, but there is no event listening to it. Why????
You are wiring file references across case structures and some cases are not wired through (= use default). This means that the reference becomes invalid and the original reference can never get closed later.
You don't need to read from an empty hidden chart to clear the history, just use a diagram constant!
etc. etc. etc......
Here's another small example (see notes on picture). Your entire code is full of such problems:
The problems are way too numerous for an easy fix or to really pinpoint where the memory problem originates. I would really suggest to sit down and learn about proper program design! Do a few turorials! Look at the examples that ship with LabVIEW! Who wrote this program?
After you are more familiar with LabVIEW, delete all your code and start over with a clean state machine architecture, a few shift registers, and NO value property nodes. Make sure it does not exceeed the size of your monitor.
12-19-2007 08:47 PM - edited 12-19-2007 08:50 PM