LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

8.5 crashes when load vi

Solved!
Go to solution

Labview 8.5 crashes with no error messages...just exits...while loading the attached VI. Going to cause me a lot of grief if I can't recover it.

 

TIA,

Les  

0 Kudos
Message 1 of 8
(3,291 Views)

I can get it to open but you have not included any of the subVIs.

 

Frankly, if it's corrupt, you might be better off rewriting it. It does not make any sense and it is, imho, very poorly written. I have no idea why you think you need all of the separate event structures, nor why you have a lot front panel controls you poll instead of using an event, or why you would have constants wired to the while loop's termination terminals.

 

Rewritten, you can make it fit on one screen and then you can actually have a chance of maintaining it.

0 Kudos
Message 2 of 8
(3,284 Views)

I can open it too, but I strongly recommend that you rewrite this from scratch, because it is not maintainable code.

 

  • Currently, the diagram fills several hundred screens with mostly empty space and duplicate code.
  • There are over a dozen event structures running in parallel!!! One is enough, just add more cases!
  • Most (All!) data manipulation in done via locals and value properties.
  • There are infinite loops (hardwired to run forever!) within infinite loops, deadlocking all dataflow.
  • lots of duplicate code.
  • Layers and layers of deeply stacked sequences.
  • ...

 

Who wrote all this? 😮

0 Kudos
Message 3 of 8
(3,269 Views)

LMAO!...At least you can load it.....OK, now that we have established that I don't have a CLUE what I'm doing.....( BTW the program actually works )...where is there an error log I can look at, or how can I create one?

 

TIA 

0 Kudos
Message 4 of 8
(3,263 Views)
Solution
Accepted by topic author mastaflash

What I did not mention before is that it loads fine in 8.6. Just tried to load it with 8.5 and it crashed. I then opened it in 8.6 and did a save for previous. 8.5 was then able to open it. Try the attached.

Message 5 of 8
(3,253 Views)

Outstanding! Thanks.....

 

....If I ever get the time, I will rewrite it...but for now it does what is supposed to, and has for months...

 

Thanks,

 

Les 

0 Kudos
Message 6 of 8
(3,246 Views)
(Just another data point: It also opens fine in 8.5.1, must be a small bug in 8.5 somewhere)
Message 7 of 8
(3,241 Views)
Thanks, even better. :smileyhappy:
0 Kudos
Message 8 of 8
(3,236 Views)