Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB 6363 PWM generation problem

Hello everyone,

 

I have a NI USB 6363 Mass Termination device. And I am using nidaqmx python library to program it.

My condition is that:

I tested example code for ao, ai, do, di, ci, they all work, but when I run the code for co, it reports an error:

(-200474): Specified operation did not complete, because the specified timeout expired

 

My code is:

    import nidaqmx
    from nidaqmx.types import CtrTime
    with nidaqmx.Task() as task:
        task.co_channels.add_co_pulse_chan_time("Dev1/ctr0")
        sample = CtrTime(high_time=10, low_time=10)
        task.write(sample, auto_start=True)

 

Hardware setup:

    NI USB 6363 is connected to PC through USB cable

    NI USB 6363 power cable is connected

    connector 0 and 1 are not connected to anything

 

Does anyone has some ideas? This confused me for long. Thanks!

 

0 Kudos
Message 1 of 1
(2,389 Views)