06-03-2011 02:39 AM
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.
08-22-2011 11:23 PM
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
08-23-2011 02:01 AM
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.
08-23-2011 02:04 AM
Hi Ankit,
Can you give me the RT.ini file so that I can take a look at it?
Regards,
Sumit
09-03-2011 04:14 PM
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