Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Download stand-alone application to RIO without LabView and make it run at startup.

I have seen that you can download the application using FTP, but how do I set it to run at startup?

 

Terje

0 Kudos
Message 1 of 6
(5,000 Views)

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.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 6
(4,992 Views)

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)?

 

Terje
0 Kudos
Message 3 of 6
(4,967 Views)

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.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 4 of 6
(4,961 Views)
Also, if your using the project environment you don't really need to set the ini files yourself.  You can set an executable to be startup by a right click option, setting it to a startup, and then deploying it to the RT device. 
 
 
Regards,
 
Bassett


Message Edited by Bassett Hound on 11-12-2007 10:34 AM

Message Edited by Bassett Hound on 11-12-2007 10:35 AM
0 Kudos
Message 5 of 6
(4,957 Views)

Thank you all for your replies.

 

Christian: That was exactly what I needed.

 

Terje

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