Can't Access USB Device When Launching NIvisaic as "Normal User" on Red Hat Linux

Updated Apr 19, 2018

Reported In

Driver

  • NI-VISA

Operating System

  • Linux

Issue Details

When I launch NIvisaic as "root user", my USB device is visible, however, when I launch it as "normal user" I cannot see the USB device, how can I fix this?

Solution

The VISA user must have write access to the file that represents the USB device, which is typically somewhere in a subdirectory within "/dev/bus/usb". The default configuration on most systems is that the 'root' user
has write access; however, no other user has this access.

To give normal user access:
  • Use udev rules. By default, NI-VISA installs scripts to give all users write access to all USB TMC devices and a framework for USB RAW devices. To add write permissions for a specific USB RAW device, run the included script: "<VXIPNPPATH>/linux/NIvisa/USB/AddUsbRawPermissions.sh"
  • See here¬†for more information about udev.

Additional Information

The 'root' user may add write permissions to the file that represents the USB device which is typically somewhere in a subdirectory within "/dev/bus/usb". Unfortunately, these permissions will be lost if the device is unplugged and then plugged back in. Because of this, this approach is not recommended.

WAS THIS ARTICLE HELPFUL?

Not Helpful