01-18-2024 09:13 AM
I am running into this issue with a program. The executable will build fine and the application will run ok for awhile. Then it will stop responding. Restarting doesn't help and we are sure that there is nothing stopping it from executing. So, we are having to go back in and rebuild the application to get it to run again. It works fine while in development.
We have tried building a fresh executable instead of rebuilding.
I must be missing something or there is a file going corrupt, but I am not sure.
We are running LabVIEW 2015
Windows 10
Not sure on the hardware as this machine is in Mexico and I am in the US.
Thanks!
01-18-2024 10:56 AM
LV 2015 SP1 seems to be the earliest version of LV to be officially supported on Win10. That being said, that's probably not the issue; however, I don't recall seeing an issue like you described before where you have to rebuild it to work again.
01-18-2024 11:05 AM
Sounds more like a hardware problem. Maybe they should scan the HD for errors, for example. Maybe it runs out of disk space or memory? Maybe there is malware?
How long does it take to fail? random? minutes? hours? days? months?
Are you talking about restarting the program or restarting the computer? Maybe a driver hangs?
What does the program do? Does it keep e.g. state in an ini file or similar that corrupts due to a programming error?
01-18-2024 12:31 PM
Good idea. I will have them check the hard drive to make sure it is corrupted somehow. Now that you bring that up, one of the first steps in troubleshooting they do is re image the computer. Maybe this has something to do with it.
As far as how often this issue happens, it is very random. When it does happen it is when the tester has been sitting for a little bit (1-2 days)
The program just test a part. At the first opening of the exe we initialize some stuff such as valves and bring in specs for the last part number tested. I do know that it seems like it isnt initializing whenever it does freeze up. Like maybe it isn't talking to the DAQ?
01-18-2024 01:44 PM
Is the DAQ a USB based one? If so, try disabling power savings for USB devices in Windows.
-AK2DM
01-18-2024 02:08 PM
@AnalogKid2DigitalMan wrote:
Is the DAQ a USB based one? If so, try disabling power savings for USB devices in Windows.
I would go a step further in getting an industrial grade externally powered USB hub. Especially with laptops, I have found that the built-in USB hubs often cannot handle the current draw for one reason or another. A good externally powered USB hub will fix that issue. I am personally a fan of StarTech, with a lot of success with ST7300USBME 7-port hub. Depending on what else is connected, the OP may also get away with ST4200USBM for about half the price. Note that you will need an external power supply to get the full benefit (12V-24V works well).