04-19-2016 02:59 AM
Dear All,
I am using Labview 2011 for programing data acquisition using many interfaces (dll, GPIB, serial). Basically I am using a state machine with a while loop and separate loop for events.
Executable is run on a computer without Labview (only runtime libraries) for many hours without user input. It works OK if it was not for an unpredictable/non-programmed pauses that occurs from time to time. The program simply pauses execution indefinitely (does not freeze!) and then resumes proceeding as it should when user clicks on it (on empty surface - to bring it in focus not to cause any other programmed event). Since this pause can take all night I am loosing significant amount of time :(.
Both computers (with Labview for programming and the other for execution) are fairly new and capable Dell laptops with Win 7 64 bits (Labview 2011 is 32 bit).
If anyone knows a solution to my problem I would be very thankful if he/she could share.
BR Primoz
04-19-2016 08:08 AM
Have you checked the Power Settings in Windows to make sure that the machine isn't "going to sleep" or "hibernating"? If the power isn't set to "Always On", this can happen. You also need to make sure the Screen Saver is disabled.
It appears the algorithm that Windows uses to determine if the machine is in use is "Were any keys pressed? Was the mouse moved?". Long data collection or "control" routines can go many hours without signalling "There's a Human Here", causing mysterious problems such as you describe.
Bob Schor
04-19-2016 08:24 AM - edited 04-19-2016 08:26 AM
Hi Bob,
thank you for a very fast replay. I have power set to always on and no screen saver enabled. There is image on display at all times so I don't think any kind of hibernation takes place. I would also assume some, if not all, of my hardware connections would be lost after waking up - but the software proceeds like nothing has happened.
BR Primoz
04-19-2016 10:14 AM
Could it be that Windows needs to do other task that it is not able to do unless it pause your application?
Have you made sure not to have any intensive use of the CPU all the time?
All while loops has a wait of some sort?
04-20-2016 01:42 AM
Hi dkfire,
I have no intensive use of CPU while measuring (and that should not be a reason anyway), just a VLC displaying web camera. It seems like it is working better if the LabVIEW program is on top (it made it through the last night), but again one cannot seriously use software with this behaviour?
BR Primoz
04-20-2016 06:03 AM
Hi Pkusar,
Are you sure that it is not due to the program? Do you have the possibility to remote debug the EXE?
Marc
04-20-2016 09:33 AM
04-21-2016 02:39 AM
Hi Marc and Mike,
thank you for your posts. I was hoping there was an easy soultion to my problem, but I do not really have time for extensive debugging and LabVIEW upgrade is a managment decission not mine. I will install the whole Labview to both computers and than hope for the best.
BR Primoz