Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

What Happens If There Are Multiple Startup Executables On My Real Time Controller?



Hardware: Compact FieldPoint

Problem:
Is it possible to have two startup executables on my real time controller? If I do have two startup executables, which one gets executed?

Solution:
It is possible to have two startup executables in your real time controller by making the names of the startup executables unique. However, only one startup executable will be functional at a time.

If you deploy two executables, only the second one will be executed on startup. Since there is just one ni-rt.ini file, the deployment of the second executable will overwrite the ni-rt.ini from the first executable with the ini file of the second one.

The token associated with the startup executable in the ini file is

RTTarget.ApplicationPath=c:\ni-rt\startup\startup.rtexe

where startup is the name of your first startup executable. If you enter another token in the same ni-rt.ini file called

RTTarget.ApplicationPath=c:\ni-rt\startup\startup2.rtexe

for your second startup executable, the startup executable that will be executed will be the last one from top down in the ini file. This means if

RTTarget.ApplicationPath=c:\ni-rt\startup\startup2.rtexe

is placed before

RTTarget.ApplicationPath=c:\ni-rt\startup\startup.rtexe,

startup.rtexe will be executed when the controller is turned on.

The ni-rt.ini will contain information only from startup executables deployed to the controller from LabVIEW, as transferring the application to the controller with FTP does not modify the ni-rt.ini file.

Related Links:
KnowledgBase 42GD4FZ: Startup EXE not Launching on Real-Time (RT) Target at Controller Reset

Attachments:





Report Date: 08/28/2008
Last Updated: 10/26/2012
Document ID: 4ORCNRQR

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit