05-07-2008 10:29 AM
05-07-2008 10:31 AM
Find out why it's crashing first. Is it crashing due to the LabVIEW app, or from a crappy OS?
What would you do?
05-07-2008 10:44 AM
I think the problem resides in the OS , but i dont know if its because a bad driver installation (Labview doesnt participate on this i think). The thing is i must access my computer remotely often to apply little updates the the Labview program, but it happens that after a few days i am unable to accces it because of this reboots ; when i check the PC , windows tells me that a severe error ocurred, windows crashed because of a bad driver instalation or something like that, it also says that a blue screen was displayed because of system failure ( The blue screen with memory adreesses is one of the worst system crash that windows can make in my experience) and i must send an error report.
Just for adding more info, the PC i am using was built of several parts of different brands.![]()
05-07-2008 10:50 AM
05-07-2008 11:05 AM
Ok, your advice sounds good and it is better than run for a new computer, i will format again my hard drive and install all of the drivers correctly, i think that should do. The computer isnt old actually it has a Pentium D processor, but i mentioned about changing the PC because i was uncertain about the problem of my PC.
I will take care of my PC today and if all goes well after that( No more windows fancy blue crashes) i will metion it here. Thanks pal.
05-07-2008 12:34 PM
Blue screens can also becaused by a programming problem and not just a driver problem.
This happened to me. Someone created some code for me for data acquisition. After 20 minutes, the PC would crash with a blue screen. I added some logging and found it was this particular loop that crashed after about 80,000 iterations. Digging into that loop, I eventually found there was a subVI that was called repeatedly in a loop. In the subVI they constantly called a create task DAQmx function, read the task, exited the subVI, but they never closed the task. So it consistently ate up resources as it made a new task every iteration.
Once I found that, I was able to fix that person's code so the task was only created once before the loop, closed after the loop, and only a read was done in a subVI in the loop.
Look at the PC for growing memory over time. Look for uncontrolled creation of tasks for other things like queues.
05-07-2008 12:39 PM
Ravens, what kind of log did you set up? how can you set up a simple log in labview? I am interested in knowing the exact problem in my case...
Regards
05-07-2008 02:48 PM - edited 05-07-2008 02:57 PM
Isaac84 wrote:
Ravens, what kind of log did you set up? how can you set up a simple log in labview? I am interested in knowing the exact problem in my case...
Regards
I tried to find the file where I did this, but wasn't able to.
I basically opened a text file for writing. Within the loop I wrote the current time and the iteration loop number. I closed the file. I can't remember if I did the opening and closing inside the loop or outside. Since this can be time consuming, if I did it inside, then I think I would only write out the data on every 10th or 100th iteration of the loop.
Since the blue screen was such a hard crash, there was no way to debug what was going on. This way I could have whatever data that was last saved right before the crash to look at once I rebooted. After it did this 3-4 times, I could see that 20 minutes, 80,000 iterations was somewhat of a pattern (it varied somewhat) and I new I was dealing with a consistent problem rather than something random.
You could add more data to your File write depending on what makes sense for your application. If you want to write out data from multiple locations in your program, you could create a parallel loop to write to file and pass data to it by way of a queue.
05-07-2008 04:22 PM
Guess what, i got home by midday and i found the computer shutted down, and it didnt want to turn on again, after a while of having the power suply disconnected, it turned on again, and guess what , another blue screen error window was shown to me as the cause of the crash, when i accept to send the error to windows they say that the orign of the error is unknown..... Well i will let the computer turned on for a week but with labview program off so i can know were the problems comes from. I think the video card driver has something to do with it...Hey thanks rev for the Log idea, i never though of it and i could use it one day.
Best regards
05-07-2008 04:32 PM - edited 05-07-2008 04:32 PM