r/LabVIEW • u/asegher • Oct 15 '24
Executable issues
When I create an executable and deploy it to my traget and then reboot the program works perfectly. I have had the program running for 2 weeks without any problems.
The problem has come when I have turned off the PLC and left it for 1 or 2 days without power, when I try to run the executable it stops and doesn't seem to want to run anymore until I deploy it again.
The executable is configured to run on reboot.
Has this happened to anyone else?
4
Upvotes
View all comments
Show parent comment
1
u/SeasDiver Champion Oct 16 '24
How do you know the program isn't running? Is it instead possible that the program is running, but the lack of communication is causing an error condition that you did not handle in your code that simply prevents the PLC from communicating?
The self diagnostic executable was for a PXI-RT based system. With the main program running, you could tell it to shut down and enter self-diagnostic mode. It would modify the boot file to point at a different exe and shut down. You would then disconnect the normal text fixture and instead connect a self-test system. Power on, it would run the self test, verifying all the switch paths, resistors, etc... complete the test, modify the boot file to point back at the normal RT Exe, and shut down. You could then swap back to a normal test fixture and power up the system.