07-13-2021 08:34 AM
I currently have a little update utility to deploy updated RT EXEs to a cRIO target. This is done while the target is actively running an older version of the EXE.
Right now, I set the "enable ET EXE" flag (that's not the actual key name, I forget the exact name) in the lvrt.conf file to disable running on startup and then reboot the cRIO. This get the old RT EXE to stop running. Then I can WebDAV the new one onto the target, re-enable the flag, and reboot a second time.
However, the double reboot is a bit slow for my taste. Is there a way to interrupt the old running EXE, the same way LabVIEW does from a project without having to add code to the RT EXE itself to signal a shutdown? This way I wouldn't have to do the first reboot.
07-13-2021 08:50 AM
I don't think you have to stop the executable in order to copy over it. At least in the past, I could have the executable read an update directory, copy over the update, and then reboot.
07-13-2021 09:32 AM
I didn’t think so either, I figured once it was loaded up in memory and executing I could just overwrite it but I was getting inconsistent behavior doing that so added the step to get it to completely stop running first.