Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

restart cRIO with command line

Hi!
Does anybody know if there is a option to restart a cRIO device over a command line?
 
regards,
demo66
regards,
demo66
0 Kudos
Message 1 of 4
(6,052 Views)

Hey demo66,

"shutdown -r \\123.456.789.000" should work, where 123.456.789.000 represents the IP of your cRIO.

BR, Christian

Message Edited by Christian_M on 10-08-2007 02:31 AM

0 Kudos
Message 2 of 4
(6,030 Views)
Demo66,

restarting an RT device from National Instruments is established by a UDP or TCP/IP connection (depending on remote subnet) with a specific set of parameters.
Therefore, a simple command line input is not working.
The suggestion Christian made is only working for Windows based systems (with the -m argument) where you have appropriate access rights.

A simple workaround would be to create a small LabVIEW executable which is able to process command line parameters.
In this case the executable contains the function "RT reboot controller.vi".
Please find attached an example in LabVIEW 8.5.

To get it run appropriately create an executable of the VI and use one of the following command line strings to restart the RT system:
RT system is on the local subnet: RestartRTTarget.exe -- 00FF00FF00FF
RT system is on a remote subnet: RestartRTTarget.exe -- 00FF00FF00FF 100.100.100.100

"00FF00FF00FF" represents the MAC address of the RT system
"100.100.100.100" represents the IP address of the RT system


Thanks,
ThSa





Message Edited by ThSa on 10-08-2007 10:40 AM

Download All
Message 3 of 4
(6,021 Views)

Thank you ThSa and Christian!

I builded an executable VI of the RestartRTTarget.vi with a "quit labview"-block that the app shut down after execution.

regards,

demo66

regards,
demo66
0 Kudos
Message 4 of 4
(6,009 Views)