LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Crashes when I try to close my while loops

Hi
I have written a LV Vi  for  simultaneously  aquiring a video stream from 4  Fire Wire cameras. In this vi I use multiple while loops(running parallel).
Nearly every time I try to stop the VI labView crashes and doesn't respond at all.
The only chance to stop LV is to close it with the task manager.
I'm using LV 8.2.
Has anybody got an idea.
Thanks a lot

Matthias
0 Kudos
Message 1 of 6
(3,090 Views)
Without more information, it is very difficult to help. Try posting your vi as an attachment for others to look at.

Most often, the program appears to hang when it is waiting for something else to happen. What happens when you step thru the block diagram?
0 Kudos
Message 2 of 6
(3,083 Views)

hi there

hm, sounds like a memory hole or opening hardware over and over again. impossible to answer without any code...

please post some code (add a screenshot for those folks still working with 7.x)

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 6
(3,082 Views)
Hi Mathias,
this behaviour I experienced often when using large amounts of memory by creating large arrays (with many copies). Another proplem is to create references without closing them, this consumes windows ressources. While the VI runs, is there an increasing use of memory in the task manager?
When the VI tries to stop, are you able to switch to the block diagram? Then you could activate the highlight mode (debugging) and LV shows, which node is still working with the green arrow at the node.
Just a few ideas...
Greets, Dave
Greets, Dave
0 Kudos
Message 4 of 6
(3,080 Views)
Hi Dave
There is an increased use of memory in the Task manager.
When the VI tries to stop there is no way to switch to the block diagram.
But I realized that the aquired memory is only cleared when I abort the VI using the task manager.

At the moment I can't show you the source code or a screenshot because the used PC has no Internet and I have no way to copy the data onto this computer
I'll try to do this tomorrow.

regards

matthias
0 Kudos
Message 5 of 6
(3,065 Views)
Hi
at last I've found the problem.
I just tried a few changes to the program.
I'm not entirely sure but  I think there was one sub VI which tried to read from a reference allready closed.
Thanks for your help

Matthias
0 Kudos
Message 6 of 6
(3,049 Views)