LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow loading of packed library

Hi Thierry,

 

My final app doesnt depend on the abort button but i'm still in the developpement stage.

 

For the moment, each time I want to abort the main vi, i need to close the whole project so I get the message "this will close all running vi" and then, my background vi get closed. It's not vere practical and each modification of the code takes ages to test (because I need to close and reload the project each time).

 

 

 

Regards,

 

peper2001

0 Kudos
Message 21 of 24
(455 Views)

Hello peper,

 

I would seriously advise you to avoid using the abort button to stop application with parallel running VIs in it.

It will save you most time to focus first on an architecture that allows you to stop the application with a stop button.
This will also make your development stage go smoother. 

 

Is there a specific reason why it's currently not possible to add a stop action to your architecture?

 

Using the abort button can cause you to ignore the standard settings that you might have done in your code. (eg. closing the VI when the "parent VI" is no longer referencing).

As the name says it will just abort the current action and will (for example) also not handle any closing of references.
This (using abort button instead of a proper stop button) is the way that alot of people have problems when developing code with references that are kept open.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 22 of 24
(436 Views)

Hi Thierry,

 

I've managed to close all the loops of my main VI gently. Hence, I can abort and and close all the references of the vi's running in the background before my main vi stops.

 

However I often have a labview crash when trying to abort and close the dynamically referenced vis. I guess the problem lies in the use of the "abort" method to close those dynamic vis...

 

Who could have thought that closing a vi would be as hard as making it run!

 

Anyhow, I'll try to update to Labview 2012SP1 and create a clean way to stop my dynamic vis. I hope that will solve my problem.

 

Best regards,

 

peper

 

 

0 Kudos
Message 23 of 24
(431 Views)

Hello pepper,

 

If you would have any code that you would like me to check out, then don't hesitate to let me know.

 

This week I was busy teaching 2  LabVIEW courses, but next week i should be able to check the forum more often.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 24 of 24
(408 Views)