Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

deploy real time target build spec as startup, programmatically

Hi all,

 

I have a need to be able to deploy a startup .rtexe to many targets at once. I do this because we frequently tweak and rebuild the .rtexe.  Usually I do this through the project explorer- but it gets tiresome to have to change the IP  address and go throught the deploy process for every single unit. I ginned up a VI that uses property / invoke nodes to DEPLOY the build programmatically to target, but this doesn't work-- program does not run correctly, and files are not getting written to hard drive of target. 

 

I should say, I have looked at the RAD utility and it's not what I need-- there you are flashing a whole image of the harddisk.  There are also config files which are unique to each target that would get wiped by RAD. 

 

Is there not a way to invoke the "Run as startup" method programmatically??

 

 

 

 

 

 

0 Kudos
Message 1 of 4
(6,232 Views)
Run As Startup :
Moves the built rtexe to the remote startup directory
Flags the rtexe as the startup application in the \ni-rt.ini file
Reboots the controller

I believe VxWorks permits these operations while the controller is in normal operating mode but Pharlap must be put into safe mode. The rtexe's dependencies, aliases, and configuration must all be in the correct locations as well. Have you considered all the above?

-Steve
0 Kudos
Message 2 of 4
(6,226 Views)

Hi Pie,

 

I have often updated software by just FTP'ing over the build and overwriting existing startup.rtexe and ancillary files. I think I may have come to the right solution-- deploy the target setting with invoke method through project (thus avoiding messing with  individual lines in the ni-rt.ini file) and then programmatically FTPing the build over, and programmatically resetting the target. It's just a a little more work but should do the trick. 

0 Kudos
Message 3 of 4
(6,209 Views)

Hi MarkCG,

I am looking for a solution to check the current build version from multiple rt crio targets against a master version on at network share.

I understand that you have a solution for that.

Is it possible for you to post an example vi?

0 Kudos
Message 4 of 4
(6,099 Views)