Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-9263 write using python

Solved!
Go to solution

Hi

I am trying to write a single value to a NI-9263 based on the NI example https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/ao_voltage_hw_timed.py

 
import nidaqmx
with nidaqmx.Task() as task:
    task.ao_channels.add_ao_voltage_chan('cDAQ1Mod2/ao0')
    print('1 Channel 1 Sample Write: ')
    print(task.write(1.0))
 

But I get a "nidaqmx.errors.DaqError: A USB transfer failed due to a transaction error reported by the USB host controller.  This may be due to a fault in the system's USB host controller, a USB cable, or a USB device.", error code -50808, when the write is performed.

I can write to a NI-9401 in the same chassis so the connection should be ok.

Do I need additional steps to write to the analog output?

 

Best regards

Thorbjørn

0 Kudos
Message 1 of 2
(2,529 Views)
Solution
Accepted by topic author thj@medicomip.com

Hi again

I am not totally sure why but the issue has been resolved. I installed the new NI-DAQ driver with tools which resolved the issue. Guess it must have been an update of the firmware in the module or an update of the driver that has resolved the issue.

 

/Thorbjørn

0 Kudos
Message 2 of 2
(2,507 Views)