LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Crashes when adding case and sequence structures

I am running into a problem that I have never experienced before - when I am adding case and sequence structures to a version of code I am writing, Labview 6i crashes (i.e CPU allocation jumps to 95% on the task manager and hangs there) requiring an "end task". I am writing the code within XP Pro running on a 1.7 Ghz Pentium 4 machine with 512 MB.

The code is used to control valves and temperature controllers on a Noble gas analysis line and is fairly simple. There are multiple nested sequence (30 steps long) and case structures within a while loop. The code itself is around 1.9 MB, so given the speed and on-board memory of my machine I doubt that I am reaching and physical limit in terms of the memory or proce
ssing power required.

Has anyone ever seen something like this? Could the code have been corrupted by an email transfer? If so are there ways to recover? Any help would be greatly appreciated.
0 Kudos
Message 1 of 11
(3,538 Views)
Check the "obvious" first. Do your loops have a wait time in them to keep them
from being a CPU hog?

Les Hammer
0 Kudos
Message 2 of 11
(3,538 Views)
jus another point to your problem.

Have you checked that the while loop, if any, is run with a delay (wait, say 100ms)?
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 11
(3,538 Views)
Les-
Thanks for the reply. I guess I wasn't clear about the problem. This crash occurs when I am in edit mode. As soon as drag to resize the structure it crashes. In run mode the exisiting code executes just fine.

JH
0 Kudos
Message 4 of 11
(3,538 Views)
You said 6i.

LV 6.0 had strange crash issues like you mentioned.

Are you running 6.0.2?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 11
(3,538 Views)
Yes... 6i. Do you think a reinstall is in order? I suppose it's worth a try.
0 Kudos
Message 6 of 11
(3,538 Views)
LV 6.0.2 is pretty solid.

LV 6.0 had some strange crashes.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 11
(3,538 Views)
My mistake. I currently have 6.0.0. You think upgrading to 6.0.2 or 6.1 is worthwhile?
0 Kudos
Message 8 of 11
(3,538 Views)
Yes. At least to 6.0.2. Also, you might be able to fix the problem by doing a mass recompile of the directory that the vi resides in, this fixed a similar problem I had about a year ago. Just start Labview, but don't open any of the VIs in that program, then select Tools->Advanced->Mass Compile. I am not sure why it worked for me, but it did, I think it cleans up the code a bit.
Jon D
Certified LabVIEW Developer.
0 Kudos
Message 9 of 11
(3,538 Views)
Thanks for your suggestion. Just a quick update on my situation. I reinstalled Labview 6.0...the disk claims that update 6.0.2 is included although the version appears to be "6.0.0.4005" from the information under executable's propeties.

As for the case structures I can now add them...I just can't drag/resize them around alot of controls and subVIs so that they are automatically included within the case or sequence. Now I am resizing --> moving structure to back --> dragging necessary code elements into the structure. It's cumbersome but it works.
0 Kudos
Message 10 of 11
(3,538 Views)