Let's say you want to see if a USB disk is attached. Perhaps the most reliable Linux command to do this is
fdisk -l | grep "Disk /dev/sd"
But this won't work inside a LabVIEW RT application. Why not? Because the lvuser does not have sufficient permissions to execute the fdisk command. The "disk" group has sufficient permissions to execute this command.
Here's the solution I discovered:
- SSH into the RT system using putty (or whatever).
- Execute the command
gpasswd -a lvuser disk
- Reboot.
That should do it!