Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Aplication does not run on RT on startup after Deploy and Reboot

Hi,
 
I want my RT VI which calls the FPGA target VI, this program to run as startup application when the cRIO controller is booted up.
I have followed all the steps that is listed in the web document from NI for creating Remote Panel for use on Real-Time Executable,
After , I configure the web server and build the application, i give 'Set as Startup' . Then Deploy the application. After that i Reboot the controller, then the connection is there,
but the LED next to the controller in project explorer does not glow. When I double click the RT VI , it should indiacte that its running, but in my case, the VI front panel simply opens up.
So where is the problem, i dont know.. I want to run the program on startup and then do web publishing and see the Vi  on browser.
 
-Please let me know what to do to run the program automatically on reboot.
-Also is there any indication say in the project explorer to  know that a startup program is running on the controller.
-I tried to run the rtexe application file which gets generated during build in the local directory of the host PC . But it does not run the exe program on PC
what is the method to run the rtexe from the PC to check if the application is built correctly. so later , it can be made to run as startup.
 
Thanks, Joshna
0 Kudos
Message 1 of 4
(5,145 Views)

Hey Joshna,

Thank you for contacting National Instruments.  From the information you have provided, I think we need to investigate the connection to the cRIO.  If you are following the steps that are found here, which I believe is the document you are referencing, then the file should be executing on startup. 

If the front panel opens when you double click on the Real-Time target VI, and the connection light is not illuminated then a connection does not look to be established.  If you right click on the target at this point is there an option to 'connect'?  After this procedure has been completed does the cRIO still look to be connected and communicating in Measurement and Automation Explorer?

Also, I think that it would be a good idea to verify that a few settings are present in the NI-RT.ini file. 

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

These are described in more detail in this KnowledgeBase.  I hope this information is helpful.  Let me know if there is anything else I can help with or clarify.  Have a great day!

Jason W.

 

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(5,091 Views)

 Hi Jason,

Now i guess, my application is running on startup as I can connect to the front panel using Remote Front panel connection. I can see the application running and can do remote control.

But I am not able to see the front panel on the web browser, that is using web publishing tool.

In the refernce document, it says, Open a web browser and navigate to http://IP-Address/documentname.html

Is the IP- Address in this URL, the IP-address of the RT controller where my exe is running or is the IP Address of the client, where i am viewing the panel.?

When i give the client computer name in the URL, i get the message as 'the requested VI not loaded into memory on server computer"

When i give the controller IP address , that is http://198.168.0.2/Test.html, in the web browser, i get "page cannot be displayed"

so what is the correct format to give. Thank you. 

0 Kudos
Message 3 of 4
(5,081 Views)

Hi Joshna,

It looks like you are using the instructions from this document that I directed you to previously.  To answer your question, the IP of the Real-Time controller is used to access this front panel.  I would ensure that all of the selections were made as described in the document, but also to FTP to the device to verify that the .html file is in the ni-rt/system/www/ directory on the controller.

It seems like you are on the right track, and hopefully this will work for you.  If you have any more questions don't hesitate to let me know.  I hope you have a great Thanksgiving weekend!

Jason W. 

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(5,029 Views)