LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to edit the BOOTSTRAPPING file of controller. Can i do that and how ?

Hello all,

             Actually i need to edit the BOOT INI file of controller so that i can give new path of my EXE in the controller to load when it turns-on. How can i do that please give me solution.

0 Kudos
Message 1 of 5
(2,661 Views)

A possible workaround could be using Source distributions instead of Executables. The source distribution will contain the startup VIs and the dependencies which you can configure to load when the controller boots up. Additionally you need to edit a token in the RT.ini file.

 

Example for PharLap OS: RTTarget.StartupVIs=c:\ni-rt\startup\foo.vi

Example for VxWorks OS: RTTarget.StartupVIs=/c/ni-rt/startup/foo.vi

 

I would suggest try changing the path of the VI. You can have multiple VIs for startup and if you change the token inside the .ini file and reboot the controller programmatically, the changes will automatically reflect.

 

http://digital.ni.com/public.nsf/allkb/CD3C7A3F58CBBAAA862570F8007D8D06?OpenDocument

http://digital.ni.com/public.nsf/allkb/EB548B9EBFBB1AE786256CAA006AB285?OpenDocument

http://digital.ni.com/public.nsf/allkb/538A12DB51FD561C86256B57001DB89A?OpenDocument

 

- Sumit

0 Kudos
Message 2 of 5
(2,497 Views)

Thanx sumit for your time and help.

I just want ask you one more question in the concern of same issue.

If i want to copy new version of my applicatoin(EXE) to controller at a specific path and now after rebooting i want to load the new version of my application to run as start-up. Then where i should made changes in RT-INI file and that would be done programatically.

Would you please help me in doing that.

0 Kudos
Message 3 of 5
(2,486 Views)

Hi Ankit,

 

Can you give me the RT.ini file so that I can take a look at it?

 

Regards,

 

Sumit

0 Kudos
Message 4 of 5
(2,484 Views)

There are two tokens, one is a path token and one is an enable token.  If you set a startup app on your controller, you can see these two tokens in the ni-rt.ini file.  These are read at startup, so if you make changes programmatically they'll be read on the next reboot.

 

-Danny

0 Kudos
Message 5 of 5
(2,463 Views)