NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

NI example broken? Write All LabVIEW Step Parameters in a TestStand Sequence to File

Not sure, but the NI example posted  HERE  appears to have leaks.  I've seen these before with user submitted exampels, but not an official NI example.    See attached error for only 839 objects left dangling.. - "Reference to PropertyObjects were not releasedProperly".  Maybe because it was written for LabVIEW 7?    Here's the kicker -When I try to add the two missing "close references" to the final Invoke node pn the far right... Labview 2012 gets a fatal error and crashes.  (using Teststand 2012).  FYI - This diagram is attached below as a .jpg.

get_step_parameters-labview-diagram.jpg

 

reference_to_propertyObjects-were-not-releasedProperly.jpg

Brad Whaley
LabVIEW Certified Engineer
0 Kudos
Message 1 of 6
(3,715 Views)

Which objects did you add close statements for? I see it looks like the module reference is not being closed, which else? Also I'm not that familiar with LV, what happens in the case of a loop where the close is outside the loop? Will it close all of the elements? probably it would be better to put the close inside of the loop as well if the references are not otherwise needed outside the loop.

 

Most likely the crash is due to a mistake somewhere with the close nodes. Look carefully to make sure things are only closed once.

 

Also where did you get this example from?

 

-Doug

0 Kudos
Message 2 of 6
(3,690 Views)

Click on the "HERE" above - or here  Smiley Happy

 

http://zone.ni.com/devzone/cda/epd/p/id/4551

Brad Whaley
LabVIEW Certified Engineer
0 Kudos
Message 3 of 6
(3,674 Views)

Hi bdwhaley,

 

It looks like you are correct in that this particular example does not close all the references created. I was able to reproduce this on my end and will make sure to notify the appropriate parties and look to getting this example updated. Most likely this is due to the actual age of the program. Thanks for pointing this out to us.

 

Regards,

James W.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,668 Views)

Thanks for your response - does anyone know how to get it working today or tomorrow?     - I'm confused on how to fix this... an of course need it working ASAP.

 

Thanks!

Brad

Brad Whaley
LabVIEW Certified Engineer
0 Kudos
Message 5 of 6
(3,653 Views)

I would definitely use dug9000's reccomendations. The example provided does not appear to handle non LabVIEW steps extremely well anyways, so the keys would be to make sure you are closing each opened refernece once and then don't try to close them again once the program closes. It may be worth trying to move the close references into the loops.

 

Hopefully that will get you started at least.

 

Regards,

James W.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,632 Views)