LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Better way to update RT EXE on a production target currently in use?

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.



I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
0 Kudos
Message 1 of 3
(1,472 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(1,468 Views)

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.



I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
0 Kudos
Message 3 of 3
(1,445 Views)