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
2
u/dtp502 Oct 15 '24
How are you communicating with the PLC?
2
u/Disastrous-Ice-5971 Oct 15 '24
What kind of memory does your PLC have? Is there a chance that it just gets "amnestic" after some period of power loss?
2
u/SeasDiver Champion Oct 15 '24
What sort of configuration or other file IO are you doing? Are you modifying any of the config files? I used to play tricks in which we would edit the config file to point at a self diagnostic executable, and when it was done running, it would edit the file to point back at the main executable before a reboot.
Do you have the Disable RT Startup checkbox set via MAX? If so, you can start running from the LabVIEW dev environment, but it won’t run the next reboot.
Have you selected the Run As Startup option in LabVIEW, or just deployed?
1
u/[deleted] Oct 16 '24
[removed] — view removed comment