LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Debug Cleaner Application"

Hallo community,

I'm writing a bigger LV application with lots of running VIs in the
background, open VI references, open Notifiers, parent and child windows...
Debugging this application is a little bit annoying. How can I make the
whole shebang abort, close, finish with just a button push, when I see that
I#m heading toward the next big crash...
At the moment, the worst case is to close LV with the NT TaskManager,
sometimes even rebooting the machine (time-consuming), cause it's crashing
really thoroughly and impressive ;-))

Any ideas for a global kill ?

Oli
0 Kudos
Message 1 of 3
(2,804 Views)
Oliver,

modularize your code. Seperate large pieces of code into smaller sub-vi's along lines of commonality. In other words, seperate file read / writes to sub-vi's that only do that. instrument setup into thier own vi's (one for each piece, not one for all). User prompts go in thier own vi's. Keep breaking the code up until you have small manageable pieces and then trouble shoot each block. Check error codes at the end of each sub-vi's execution and you will have a much easier time with de-bug.

Jared
0 Kudos
Message 2 of 3
(2,804 Views)
First you should try to implement a clean way to stop all running VIs.
Something like
a notifier or a global variable that tells to running VIs that they must
stop immediately
I have an utility on my LabVIEW page "Loop Utility" that does this. You put
this VI in
any while loop and it will stop the loop when one node requests a global
stop. See
the example at http://cybertechs.qc.ca/~jpdrolet/labview

Second you can write a VI using the VI Server to look for VIs in memory (or
from a
predefined name list) and programmatically abort those running Top Level.

Good luck

Jean-Pierre Drolet
Scientech R&D


"Oliver Friedrich" a écrit dans le
message news: 3ad2fcd4@newsgroups.ni.com...
> Hallo community,
>
> I'm writing a bigge
r LV application with lots of running VIs in the
> background, open VI references, open Notifiers, parent and child
windows...
> Debugging this application is a little bit annoying. How can I make the
> whole shebang abort, close, finish with just a button push, when I see
that
> I#m heading toward the next big crash...
> At the moment, the worst case is to close LV with the NT TaskManager,
> sometimes even rebooting the machine (time-consuming), cause it's crashing
> really thoroughly and impressive ;-))
>
> Any ideas for a global kill ?
>
> Oli
>
>
0 Kudos
Message 3 of 3
(2,804 Views)