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

Hey everyone,

 

Trying to automate the keysight E5071c network analyzer, however, NIVISA configuration utility doesn't find the device

 

My setup:

 

Red Hat 5

NI-VISA 5.4.4 installed withtout any issues

keysight E5071C,  connected via usb.

so far i've tried almost everything, at least as far as i know.

 

 

I found the usb device location for my instrument at          /dev/usb/usb488-0957-0d49-0-MY46522561.

 

-I ran the hotplug fix and supplied the vender and product ID, said it worked successfully

 

-I ran the NI-VISA configuration from the /vxipnp/linux/NIvisa/USB, and it doesn't show any USB devices.Only serial.

 

 

-running lsusb -v produces

------------------------------------------------------

Bus 002 Device 007: ID 0957:0d09 Agilent Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 254 Application Specific Interface
bDeviceSubClass 3 Test and Measurement
bDeviceProtocol 1 TMC
bMaxPacketSize0 64
idVendor 0x0957 Agilent Technologies, Inc.
idProduct 0x0d09
bcdDevice 1.00
iManufacturer 1 Agilent Technologies
iProduct 2 E5071C
iSerial 3 MY46522561
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 3 Test and Measurement
bInterfaceProtocol 1 TMC
iInterface 4 tmc488
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 1

----------------------------------------------------------

 

-I've also granted r/w permissions to all users on all usb devices.

-i've added....:                  none         /proc/bus/usb        usbfs          devmode=0666       0  0

  to the /etc/fstab file, and rebooted.

-and lastly, according to an NI troubleshooting guide, I added   'blacklist usbtmc'   to the /etc/modprobe.d/blacklist   file

 

Any more suggestions?

Thanks for your time!

0 Kudos
Message 1 of 28
(6,018 Views)

Hi DavidLoganProgrammer,

 

Are you using a real-time target? If the USB device is a CDC ACM class device, the NI Linux Real-Time OS already has a driver for that device which is preventing NI-VISA from claiming the device.

 

Here are few resources that might be worth looking into.

 

USB Device Not Recognized by NI-VISA on NI Linux Real-Time Target

Can I Control a USB Device with NI-VISA on a Real-Time Controller?

How Do I Detect if My USB Device is Recognized and Usable By the NI Linux Real-Time Operating System...

Instrument Control in Linux Tutorial

Technical Assistance for Linux and National Instruments Products

What Linux Distributions Do National Instruments Drivers and Software Support?

0 Kudos
Message 2 of 28
(5,984 Views)

What is a NI Linux Real-Time OS? I do not believe we installed anything from NI prior to the NI-Visa 5.4.4 libraries

0 Kudos
Message 3 of 28
(5,971 Views)

/sbin/rmmod cdc-acm
ERROR: Module cdc_acm does not exist in /proc/modules

 

I don't believe that i have a ni linux real time os

0 Kudos
Message 4 of 28
(5,970 Views)

The USBTMC driver is blocking VISA ? See this document.

0 Kudos
Message 5 of 28
(5,933 Views)

Hello guys,

I'm trying to control a vacuum gauge using an Agilent controller SGX-600 and so far i haven't found any kind of software for him.I've tried to make a program in labview using visa but a recevie the same error all over again.Can anyone help me.plsjdf.PNG

0 Kudos
Message 6 of 28
(5,890 Views)
giorgiana,

Don't hijack an unrelated thread. Please start a new one with additional details.
0 Kudos
Message 7 of 28
(5,882 Views)

Hi Mkossman,

 

I went through those steps, but to no avail. 😞

0 Kudos
Message 8 of 28
(5,862 Views)

There is one thing, what I think is missing the document: You could verify, that the blacklisting of the USBTMC module really works by running "lsmod". If the module  isn't listed anymore there is still a little chance that the driver is compiled  hard into the kernel.  So checking the kernel configuration could make sense,too.    If the USBTMC driver is neither loaded as module nor build into the kernel  I have no idea anymore.          

0 Kudos
Message 9 of 28
(5,846 Views)

I run lsmod and usbtmc is at the top of the list. So it's there.

 

My /etc/modprobe.d/blacklist file also has 'blacklist usbtmc' at the top of the file

 

What should i do now?

 

thanks

0 Kudos
Message 10 of 28
(5,815 Views)