10-30-2009 02:36 PM
Hi,
I am using Labview 8.0 on a Windows Vista operating system to communicate with lab instruments through GPIB. Occasionally, when one of my programs finishes running, an error message appears saying "Labview.exe has stopped working". The error window gives me the option to close the program or debug. After clicking debug, Windows cannot find the source of the error and the all labview applications get closed. Any ideas? Thanks.
11-03-2009 09:49 AM
11-03-2009 10:06 AM
I had a very similar issue this morning. I was using a self-built DLL, which I had recently modified to remove some error-checking. However, in cleaning up, I missed a couple of "fclose()" calles in the DLL. When the calling VI encountered these, LabView crashed with a similar "debug" option. Once I got those removed, then the app ran much better.
Hope this helps...
DOK
11-03-2009 10:44 AM
11-03-2009 11:34 AM
[Rant ON]
Anything can happen with Windows
[Rant OFF]
It may not be an issue between Windows & LabVIEW 8.x
You may need to try and trap the error by logging each and every message or transaction that takes place. Write it to a text file for later examination. You might save things like number of iterations, all communications, sniffing the error cluster, etc. It almost sounds like something is being written to a location that it should not write to...
You may want to post your code so that we can look at it in case there is something obvious.
11-04-2009 12:11 PM
The code that I have been having an issue with is attached. The main program is called "Frequency Sweep Real Time2". The other two attachments are subVI's used within the main program. I am a young programmer and I have never had any official training with Labview so sorry if my Labview programming is unconventional or just plain bad. Thanks to whoever looks this over.
-Ryan
11-05-2009 11:46 AM
Hi Polymer,
A word of warning is that LabVIEW 8.0 is not supported on Windows Vista. I believe 8.2.1 was the first version that was.
In general, looking at your code, remember the mantra that you should try to keep your block diagrams to one screen size. If it gets bigger than that, you need to look into modularizing the code a bit into subVIs. For instance, all the stop with building the XY Graph at the end could be a subVI. In the newer versions of LabVIEW there is a magical auto-cleanup tool, as well, which would tighten up some of the features of your code.