LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program stops running after 12 hours...

My LabVIEW program is supposed to be running contiuously to gather and display data. Earlier it couldn't cope with the amount of data I was sending, it got delayed and in the end my program "gave up" and stopped.
Now, the amount of data has been diminished and the program is coping fine, but still it stopped after 12 hours. (I can see from the last file that was written to file that there's no delay.)
Hope someone can help me out 🙂
0 Kudos
Message 1 of 6
(2,857 Views)
Could be a lot of things but normally such problems occur if the application is either by design allocating more and more memory / using more and more CPU until everything crashes...or it has a problem opening and never closing some type of resource...

Have you monitored the memory and cpu usage, does it increase continously, or does everything there look OK?

Do you continously build any arrays or large strings, is there an operation that happens after 12 hours that might be a suspect...What kind of hardware do the application interface with? Do you call any dlls, write to very large files...?

Mads
Message 2 of 6
(2,857 Views)
I like Mads answer, but I also wanted to point out that some programs run intermittenly like virus scanners, backup ulities, and disk checkers. You may need to check with your system administrator about hidden programs, but see if disabling the obvious programs helps.
0 Kudos
Message 3 of 6
(2,857 Views)
Hi Jeremy and Mads 🙂
Thanks a lot!! When I got back this morning, the program was still running. (It had been running for 18 hours) The CPU usage is now between 95 and 99% and I found somewhere where I'd forgot to give a shift-register an empty input, so I think that's solved. After running the program for 3-4 hours, the CPU usage is still between 0-4%. The Memory Usage seems to be increasing, however (from 20,000 to 22,000K) so I guess there's still something which needs quite a bit of memory... Earlier today, after the program had run for maybe 2-3hours, it stopped and I got this message:
LabVIEW.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.
However, I can't find the log..
.

To answer your questions, Mads;
No, I'm not building any large strings or arrays (that I know of). There isn't something that happens after 12 hours, there is something that happens at midnight, but that works fine. I'm interfacing with a webDAQ/100, a datalogger from CEC. Call any dlls?? Eh, what's that? I am writing to file, but they are not "very large" files...

Since the program runs and stops at different times, I don't think it's a virus-scan or something like that. -But I have contacted the administrator, and hopefully he'll get back to me soon.

I don't know if this tell either of you anything, but if it does, I'd be very grateful to receive another answer.. 🙂

-Margrete
0 Kudos
Message 4 of 6
(2,857 Views)
Hi Jeremy and Mads 🙂
Thanks a lot!! When I got back this morning, the program was still running. (It had been running for 18 hours) The CPU usage is now between 95 and 99% and I found somewhere where I'd forgot to give a shift-register an empty input, so I think that's solved. After running the program for 3-4 hours, the CPU usage is still between 0-4%. The Memory Usage seems to be increasing, however (from 20,000 to 22,000K) so I guess there's still something which needs quite a bit of memory... Earlier today, after the program had run for maybe 2-3hours, it stopped and I got this message:
LabVIEW.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.
However, I can't find the log..
.

To answer your questions, Mads;
No, I'm not building any large strings or arrays (that I know of). There isn't something that happens after 12 hours, there is something that happens at midnight, but that works fine. I'm interfacing with a webDAQ/100, a datalogger from CEC. Call any dlls?? Eh, what's that? I am writing to file, but they are not "very large" files...

Since the program runs and stops at different times, I don't think it's a virus-scan or something like that. -But I have contacted the administrator, and hopefully he'll get back to me soon.

I don't know if this tell either of you anything, but if it does, I'd be very grateful to receive another answer.. 🙂

-Margrete
0 Kudos
Message 5 of 6
(2,857 Views)
Is the application something you could share? If that is possible then just e-mail it to mads.toppe@broadpark.no and I'll see if I can find the problem(do a save with options and a development save so that everything is included..).
0 Kudos
Message 6 of 6
(2,857 Views)