Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

Fail to communicate using a USB resource on Linux

$
0
0

Dear community,

 

I come here hoping to get some some ideas and suggestions about a problem I am having connecting a spectrometer device (a ThorLabs product) via a USB interface on a Linux environment. This device requires a VISA implementation to work and to that end I downloaded the NI-VISA libraries from https://www.ni.com/en-gb/support/downloads/drivers/download.ni-linux-device-drivers.html#350003 and installed them on an openSUSE-Leap15.1.

 

Thus far I managed to pick the device control drivers source code from ThorLabs and compiled it with GCC, linking the VISA libraries provided by the NI-VISA package. To initialise the device from the compiled libraries I need to pass the USB resource name and here is where my problems start, since it seems my system is unable to find it.

 

Here's what I've done to so far:

- Using the command 'lsusb -v' in Linux shows the vendor (0x1313) and product IDs (0x8080), but not the serial number. Also the product ID is not what I expect to see, which is 0x8081.

- Used pyvisa ResourceManager class to list all interfaces with the libvisa.so backend did not return my device, even when passing the query '?*'

- Knowing that it is a RAW instrument I using NI-VISA Driver Wizard following this page but surprisingly the USB option is greyed out. Maybe this could already help figure out what's wrong.

 

Tried this before on a Windows machine with the NI-VISA libraries and it worked flawlessly, so in a way I know what I am looking for.

 

I feel that I am close to solving this but I am out of ideas. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>