Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Reboot CompactRIO

I'm using a cRIO-9014 with Scan mode, i need to reboot it programmatically (LV 8.6.1). I read here that RT Reboot Controller doesn't work on that machine, but no solution is provided. I know another rebooting method for Fieldpoints (using datasocket and logos) but it doesn't seem to work with cRIO. So how can i reboot programmatically a cRIO-9014?
0 Kudos
Message 1 of 17
(7,852 Views)
Message 2 of 17
(7,846 Views)
I am using Scan mode, not FPGA programming
Message 3 of 17
(7,843 Views)

The VI in the following diagram does work on a VxWorks cRIO controller to reboot itself.

 

reboot.png

Message Edited by Christian L on 07-22-2009 10:26 AM
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Message 4 of 17
(7,836 Views)

No it doesn't work, as NI document above says.

I just tried it again, both VI and EXE formats

0 Kudos
Message 5 of 17
(7,760 Views)
I noticed that even rebooting the target manually from the Labview project doesn't work (rightclick on target -> utilities -> reboot). I can only reboot with the hardware reset button!
0 Kudos
Message 6 of 17
(7,726 Views)

I retested my code again on a cRIO-9012 controller and it will indeed reboot that controller programmatically, either from itself, or from another system on the network.

 

Based on your latest comment I think you're running into a different problem where you are locking up the cRIO controller with code running on the controller which is blocking the background task which would respond to the remote reboot request. Try the reboot operation without any other code running on the controller.

Message Edited by Christian L on 08-10-2009 12:31 PM
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 7 of 17
(7,689 Views)

My controller is a cRIO-9014 and i tried with no other code running (and retried this morning). No error message, it just doesn't reboot. When rebooting manually form the project, i get "An error occurred while attempting to reboot the target".

 

Maybe there's something wrong with my system, however if your code works for you but NI documentation says it won't work, there's something wrong elsewhere too...

0 Kudos
Message 8 of 17
(7,676 Views)

Snamprogetti wrote:

When rebooting manually form the project, i get "An error occurred while attempting to reboot the target".


Because of this behavior I think that there may be some other issue, such as a corrupt installation of software on your cRIO controller. Rebooting the controller from the project should work in any case.

 

Can you try reformatting the controller from MAX (must boot into Safe mode first) and then reinstalling the software (LV RT and drivers) on the cRIO controller from MAX. Afterwards try connecting to the controller in the LV project and rebooting from the project.

 

 


Snamprogetti wrote:

 

Maybe there's something wrong with my system, however if your code works for you but NI documentation says it won't work, there's something wrong elsewhere too...


What is the network configuration of your cRIO system? Are you using a DHCP server and automatically assigning an IP address to the controller or do you have it configured for a static IP address? What about your host system? Are the host and cRIO controller located on the same subnet?

 

I will check with R&D and verify this other document about the Reboot function working on VxWorks cRIO.

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


  
0 Kudos
Message 9 of 17
(7,669 Views)

I checked with R&D and some of the information in that KB entry is incorrect. It will be udpated shortly.

 

In general the Reboot VI (RT Restart Target in LabVIEW 2009) using the IP address to identify the target system does work in VxWorks (cRIO-901x).

 

 

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


  
Message 10 of 17
(7,649 Views)