01-19-2011 10:02 AM
Hi,
I'm trying to open the main vi in a project and Labview immediately crashes. I restart Labview and try to open a sub-vi. They all open except one which causes Labview to immediately crash. I'm opening vi's developed with version 8.6 with Labview 2010. It worked fine using version 8.6 years ago.
I'm fairly new to Labview but I'm guessing this sub-vi has a problem with Labview 2010 and is causing the main to crash when I open it. I'm not sure what's in this vi other than it calls other sub-vi's for common processes. How do I diagnose and correct this problem?
Thanks!
01-19-2011 10:03 AM
01-19-2011 12:16 PM
One possibility is that the main VI is probably set to run when opened, and that something the main VI is doing is causing a crash. Perhaps it's related to some hardware control. Try placing the main VI on the block diagram of a new VI and then double click the main VI's icon from the new block diagram. The VI should open but not run. If it doesn't crash then that's the problem. You'd need to see what the VI is doing when it starts up that's causing the crash.
01-19-2011 12:41 PM
Good idea! I was able to put the main vi in a new vi. I was able to open the main vi. If I try to save the new vi or save the main vi it crashes. In the main vi if I try to open the suspect sub-vi Labview crashes.
I tried again but I placed the suspect sub-vi in the new vi. I cannot add the sub-vi it crashes. It seems that if Labview 2010 does anything with this suspect sub-vi it crashes. Is there a fault log or another way to investigate this problem?
Thanks!
01-19-2011 09:17 PM
As it was suggested, attach the problem VI so we can see if we have problems opening it. Then we can narrow down if it is truly a problem with the VI, or something particular about your PC causing the problem.
01-20-2011 09:29 AM
What I figured out is that the "Insert Into Array" function from version 8.6 is not compatible with Labview2010. I was able to open it with Labview2009 and delete the functions and save it which enabled me to open it with Labview2010.
Thanks!
01-20-2011 09:38 AM
@Shok wrote:
What I figured out is that the "Insert Into Array" function from version 8.6 is not compatible with Labview2010.
This makes no sense. That function is perfectly compatible with LabVIEW 2010. I suspect you may have had a small corruption in your VI and once you deleted the function the recompilation "cleared it up".