Rebooting Linux RT Target on Embedded UI

Updated Mar 25, 2025

Environment

Hardware

  • CompactRIO Controller
  • PXI Controller

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Sometimes, the embedded code doesn't work properly, so I want to reboot my cRIO. As cRIO is installed in a confined space and hard to open it, it needs to be rebooted on embedded UI. This article will give the guidance how to reboot your Linux RT target on Embedded UI.

You can reboot your system by trying one of the following methods:

  1. Run /sbin/reboot in your terminal window.
  2. Commands like `reboot` are NOT found because reboot is in `/sbin`, but it is missing from your PATH. To fix this issue permanently, you can add `/sbin` in your PATH by following steps:
    1. Run echo PATH="\$PATH:/sbin" >> ~/.bashrc to add "PATH=$PATH:/sbin".
    2. Run vi ~/.bashrc to check if the line has been added successfully.
# ~/.bashrc: executed by bash(1) for non-login interactive shells.

[ -z "$PS1" ] && return
[ -z "$BASH_VERSION" ] && return

# Always use ls --color -F, even if dircolors isn't installed: busybox ls
# invariably supports it
alias ls='ls --color=auto -F'

if command -v dircolors >/dev/null 2>&1; then
        eval `dircolors -b`
fi

HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s checkjobs

PATH=$PATH:/sbin
~   
~
~
~
I /home/lvuser/.bashrc [Modified] 19/19 100%
    1. Save and exit, then reload by running source ~/.bashrc.

From now on, you can run "reboot" to reboot the system every time you open the terminal.