> I have been working on a Labview program for quite some time now and
> worryingly the software has developed an error. When saving the PC
> just locks, fails to save the program at all, and does not allow me to
> perform ANY functions within the labview environment (even closing the
> program). I have to hit CTRL ALT DEL to get control and the PC reports
> 100% CPU Usage. This as I am sure you appriciate is a BIG problem.
> There is nothing I have done in the last day (when it started) that I
> havn't been doing for the past few months. The main V.I. is very big
> at approx. 10MB and contains loads of locaL nodes, is there any
> reasons this could be occuring ?
Wow. A ten megabyte VI in one day. Please don't take this the wrong
way, but I suspect that your diagram is full of copied code -- Copied
code with lots of local variables that reads somewhat like C code, then
placed into a bunch of sequences that act like lines in a function.
Assuming that this description fits, you should really spend about an
hour opening and looking at a few example programs. Then open your
diagram, or start from scratch, and make sure that you build subVIs and
use wires. LV is a dataflow language, and if you use local variables
for anything other than to write to a control or to stop parallel loops,
then you are going to wind up wishing you were using another tool.
It sounds like you can still open your VI. If the code in it is useful,
go to one of the sequences that contains code that you need to reuse.
Select the code with a combination of selection rectangles and shift
clicks, then under the edit menu is an item for making a subVI from
selection. This isn't the best way to make a subVI, and you shouldn't
be putting locals into the selection. The goal is to make a building
block that you can reuse, like the Add node. You will then drop that
building block and wire data in and out whenever you want to reuse it.
As I said, the examples should help a bit. I'd recommend the Analysis,
measure, dyamic signal analyser for something nontrivial. On its
diagram, use the help window to see what the blocks do. Double click
ont he nodes to open them and see their panel and diagram that is
available for reuse.
As for the large VI that you have already built. It shouldn't be
crashing, and in fact, you might just want to give it some time. 10MB
is alot of diagram, and it might just take a few minutes to save. You
also don't mention which version of LV you are using. You might want to
try to update it if there are any bug fix patches available.
If you have questions about how to do things without using gobs of
locals after looking at the examples, please post questions.
Greg McKaskle