Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

linux with USB-6501 - no devices found

Hi, 

 

I cannot see devices after installing the drivers.

No idea where to look now.

 

Trying with python:

local_system = nidaqmx.system.System.local()
driver_version = local_system.driver_version
print('DAQmx {0}.{1}.{2}'.format(driver_version.major_version, driver_version.minor_version,driver_version.update_version))

 

outputs:

DAQmx 21.3.0

 

So I think drivers are installed successfully. When trying to read some levels:

with nidaqmx.Task() as task:
task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
task.read()

 

I get output:

nidaqmx.errors.DaqError: Device identifier is invalid.
Device Specified: Dev1

 

I cannot see any devices, output of nilsdev command is empty. I tried various device identifiers.

 

lsusb shows the device is connected:

Bus 001 Device 002: ID 3923:718a National Instruments Corp. NI USB-6501

 

modules loaded:

nipxirmk 303104 1
nimru2k 774144 2
nimxdfk 593920 4 nimru2k
nidimk 376832 5 nimru2k,nipxirmk
nimdbgk 466944 6 nimru2k,nipxirmk,nimxdfk
niorbk 122880 5 nimdbgk,nimru2k,nipxirmk,nimxdfk,nidimk
nipalk 1241088 9 nimdbgk,nimru2k,niorbk,nipxirmk,nimxdfk,nidimk
nikal 126976 7 nimdbgk,nimru2k,niorbk,nipxirmk,nimxdfk,nidimk,nipalk
ni_usb6501 16384 0

 

kernel version:

5.13.0-37-generic

 

dmesg

[ 4.812858] usb 1-1: new full-speed USB device number 2 using xhci_hcd
[ 4.964832] usb 1-1: New USB device found, idVendor=3923, idProduct=718a, bcdDevice= 1.00
[ 4.964857] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.964866] usb 1-1: Product: NI USB-6501
[ 4.964873] usb 1-1: Manufacturer: National Instruments
[ 4.964879] usb 1-1: SerialNumber: 0201B133

 

What am I missing now? 

0 Kudos
Message 1 of 3
(1,564 Views)

Led in device is blinking ~2x second, so I think I'm using the API completely wrong. 

0 Kudos
Message 2 of 3
(1,531 Views)

Stuck with this error:

 

with nidaqmx.Task() as task:
task.di_channels.add_di_chan("comedi0/line0/port0")
task.read()

nidaqmx.errors.DaqError: Device identifier is invalid.
Device Specified: comedi0

Task Name: _unnamedTask<0>

Status Code: -200220

 

I've tried various names for device (Dev1, Dev2 and so on), no success.

 

Any hints where to look?

 

0 Kudos
Message 3 of 3
(1,505 Views)