LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

project closes after I run and close certain VIs

Solved!
Go to solution

I am running LabVIEW 2009 9.0f3 and am running into a couple odd things, I wanted to check if anyone else has seen this.  If I open the project it will close after closing certain VIs after they are run.  If I have a second VI open the project will remain open upon closing the VI.  This does not happen with all of the VIs in the project, only a couple of them.  This will also not happen unless the VI is run.

 

If anyone has ran into this and figured out how to fix it, or just has some ideas. I apreciate the input.

 

Thanks,

John

0 Kudos
Message 1 of 10
(3,386 Views)

One more comment on this, if there are unsaved changes to the project it will not close as stated above, it will lock up labview instead of closing.

0 Kudos
Message 2 of 10
(3,376 Views)

Do any of your VIs have cleanup routines that call Exit LabVIEW?

 

Seems like a Panel close event is triggering a LabVIEW shutdown.

0 Kudos
Message 3 of 10
(3,368 Views)

No, I am not callang Exit LabVIEW.  I have attached a screen shot of one of the VIs.

0 Kudos
Message 4 of 10
(3,364 Views)

Hmm. . .

Are all of the problematic VIs related to the 1553 device?

 

I'm wondering if there might be something bad happening with memory buffers crashing.

0 Kudos
Message 5 of 10
(3,352 Views)

The 1553 device is not the problem, I have tested all of the dll calls with other VIs that do not have this issue.

 

Thanks for the suggestion though.

0 Kudos
Message 6 of 10
(3,344 Views)

Just another shot in the dark.

Do the affected VI's all have that Node Reg reference?

I'm wondering if closing one of those VIs causes a problem by wiping out or corrupting that reference.

0 Kudos
Message 7 of 10
(3,337 Views)
Solution
Accepted by topic author JBART

I don't know why this solved the problem, but If I release the board before the program terminates then LabVIEW works just fine.  I was able to fix it and now everything is working fine.  Thanks for the input.

 

As for the Node Reg reference it is a reference into the XML file and is not supposed to cause any problems if it is not killed.  I kill the references on the internal VIs, just not the testing VIs.  I have read on this forum that the references will release their memory when they are killed or the program terminates.

0 Kudos
Message 8 of 10
(3,334 Views)

Sounds like it might be a bug in the 1553 driver.  I'd report it to AIM and see if they've seen similar behavior.

 

( A little bit self serving, since I'm expecting to have to work with MIL-1553 systems on my next project.) 😛

0 Kudos
Message 9 of 10
(3,327 Views)

Taki,

We might cross paths in the future then.Smiley Wink  I'd be interested to hear a little about your next project, but I can't figure out how to PM on this forum.

0 Kudos
Message 10 of 10
(3,299 Views)