11-08-2007 01:58 PM
I have seen that you can download the application using FTP, but how do I set it to run at startup?
Terje
11-09-2007 09:49 AM
Terje,
This article on DevZone describes how to modify the ni-rt.ini file on the RT target to start your application when it is rebooted. You simply need to add your startup executable as a token in the ini file.
11-12-2007 02:21 AM
Hi Christian and thank you for your reply.
Which token do I need to update to set an application as startup (rtexe)? The article only describes how to set a source distribution as startup.
Also, do I need to download the code for the FPGA separately, or is it sufficient to download the stand-alone application (rtexe)?
11-12-2007 10:26 AM
You should have the following tokens in the LVRT section of the NI-RT.INI file:
RTTarget.ApplicationPath=c:\ni-rt\startup\startup.rtexe
RTTarget.LaunchAppAtBoot=True
RTTarget.VIPath=C:\ni-rt\startup
Regarding the FPGA, if you include the code in your RT application to load the FPGA with the proper VI (Open FPGA VI Reference), then you do not need to download it seperately. It will be built into the RT EXE.
You have the option of loading the FPGA VI into the Flash memory of the FPGA and set it to load and run on bootup. In this case the FPGA will be loaded and running much more quickly (a few hundred milliseocnds) than the RT EXE. If the FPGA is already running the correct VI then the RT EXE would connect to the VI on the FPGA instead of reloading the VI to the FPGA.
11-12-2007 10:34 AM - edited 11-12-2007 10:35 AM
11-13-2007 02:28 PM
Thank you all for your replies.
Christian: That was exactly what I needed.
Terje