02-19-2003 03:14 PM
02-19-2003 04:09 PM
02-20-2003 07:41 AM
02-20-2003 10:18 AM
08-17-2005 07:21 AM
08-17-2005 07:33 AM
I have had similar problems with labview and I don't think it had to do with the size of the vi but a copy paste bug, each time my vi has crashed and not been loaded back properly, I was pasting in code. I wonder if there is some problem with instances where wires don't match up correctly. I rarely crash labview or corrupt files but have had the most problem with cutting and pasting code. One other problem I have is with dynamic event registration, when I delete certain wires, the application crashes and it depends on the order of the wire removal (maybe its a bomb and not a bug?). I would recommend backing up all code each morning since hard drive space is almost free, but time is not. I have never been able to recover when I vi will not load, sorry if this is not a big help. Why is the vi so big? Why not use subvis, it promotes reuse, simplifies code allows for easy refactoring, at least from my own experience.
Paul
08-17-2005 08:57 AM
Hi, Paul.
Thanks for responding to this old thread. I submitted a new post
http://forums.ni.com/ni/board/message?board.id=170&message.id=137801
that explains why I have a large vi. I may have to regroup and think about subvi-ing some of the code, but I was hoping for a positive answer to my question, rather than a negative answer.
It seems to me that one obvious way out of my dilemma is to recode the project in a way that LV6.1 likes, be it reducing the number of diagrams, the number of controls and indicators, the number of control references, the number of structures, or any number of things that may be suggested. I am sure I will receive plenty of general advice on better methods of programming that reduce one, some, or all of these components. I appreciate all of this thoughtful free advice, but I am under a time crunch and I don't have a lot of time for code rewriting. I really need to narrow my target for this project by knowing specifically what limit I have exceeded and reduce the code accordingly.
Your comment about cutting and pasting is intriguing. I do it prolifically and my first problem with saving occurred when I deleted 5 User Event loops and replaced them with 5 state machines by cutting and pasting. There were a number of broken wires (error cluster wire attached to the side of the state machine for data flow dependency). I was able to unbreak all of the wires but one (one end dangling free) . Every time I tried to delete this broken wire or attach it to something to heal it. The healed version of the code would not save.
Thanks again,
Jayme