Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot see my instrument in NI-VISA config, Red Hat 5, USB connection.. HELP

i'm referring to the NI VISA utilities located at:

 

/usr/local/vxipnp/linux/NIvisa/visaconf

 

and

 

/usr/local/vxipnp/linux/NIvisa/NIvisaic

 

 

These utilities do not see the attached keysight usb device

0 Kudos
Message 21 of 28
(3,640 Views)

Hi David,

 

I found a couple other links that might be worth looking through.

 

What Is USBTMC and How Can I Communicate with My USB Instrument?

 

Instrument Control in Linux Tutorial

0 Kudos
Message 22 of 28
(3,620 Views)

According to the later NI VISA's, per documentation,NI visa supports usbtmc instruments and should be visable in the visa configuration utility.

0 Kudos
Message 23 of 28
(3,577 Views)

Usually, there are two likely causes for issues like this.

 

1. The usbtmc driver is claiming the device. To diagnose it, see if you can do "rmmod usbtmc" as root and run the utility. If the device then shows up, the usbtmc module was claiming it. If you unplug the replug the device again, the usbtmc module will claim it again, so if you want to use NI-VISA to control this device, the solution suggested above to blacklist the usbtmc module might work for you.

2. The device is only accessible to root. To diagnose this problem, see if your device shows up when running the utility as root. This would mean that the udev rules that are installed by NI-VISA installer for the usbtmc device is not working. If you can see the device as root, then you can run the "/usr/local/vxipnp/linux/NIvisa/USB/AddUsbRawPermissions.sh"  script. First use lsusb to get the vendor and product IDs of the device and then run the script and provide it the IDs in the format shown by the instructions. After doing this, if you unplug and replug the device, it should be visible as non-root.

 

Please note that you might have to do both of the above (rmmod usbtmc and run the utility as root) if both of these issues are affecting your device. Let me know if neither of these suggestions work and I will look into it further.

 

EDIT: corrected the path to the script.

0 Kudos
Message 24 of 28
(3,560 Views)

I have found that "rmmod usb488" allows the agilent device(E5071C) to be accesible.

0 Kudos
Message 25 of 28
(3,535 Views)

Hi David,

 

So does this mean that you're all set now?

0 Kudos
Message 26 of 28
(3,514 Views)

Hi Jeff,

 

Yup, communication is working well between the VNA and the workstation. Perhaps add a note in the NI VISA 5.4.1 readme's section, "USB Issues on Linux", that one should also blacklist the usb488 module. My theory is that since it is a subclass of the USBTMC module, it was intercepting the instrument.

 

Thanks,

 

David

0 Kudos
Message 27 of 28
(3,474 Views)

Hi David,

 

I'm glad you resolved the issue. I've passed your feedback on to the developers and they'll be looking into it.

0 Kudos
Message 28 of 28
(3,440 Views)