Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6001 DAQmx_SampClk_Rate Error

Solved!
Go to solution

I am trying to digital out a square wave using USB-6001, using python with spyder.
Sorry for the rudimentary problem.
I get an error when I try to use the function about DAQmx_SampClk_Rate on my USB-6001.
Is USB-6001 incompatible with DAQmx_SampClk_Rate?
The version of nidaqmx is 0.7.0.

0 Kudos
Message 1 of 6
(1,454 Views)
Solution
Accepted by Emuka

The USB-6001 is a simpler device that doesn't support any kind of sample clock for output.  Only for analog input.   Output has to be software timed (i.e., a tight loop over calls to DAQmx_Write to generate individual sample values).  The effective rate will be relatively slow and much less consistent.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 6
(1,424 Views)

USB-6001 Specifications

Surprisingly, USB-6001 actually supports hardware-timed output.

ZYOng_0-1684416246228.png

 

What is the error code reported? Did you configure the sample clock timing? Please attach the code so that we can understand better.

 

-------------------------------------------------------
Control Lead | Intelline Inc
Message 3 of 6
(1,414 Views)

Thank you for your answer.
I see that the sample clock output function does not exist on the USB-6001.
It may be difficult to control 1ms unit by software, but I will try.

0 Kudos
Message 4 of 6
(1,400 Views)

Sorry for my lack of words.
The error code indicated the following

DaqError: Specified property is not supported by the device or is not applicable to the task.
Property: DAQmx_SampClk_Rate


I see that this was stated in the specification.
I'll take the time to read it again.

0 Kudos
Message 5 of 6
(1,397 Views)

@Emuka wrote:

DaqError: Specified property is not supported by the device or is not applicable to the task.
Property: DAQmx_SampClk_Rate

 


You cannot change this property if you don't configure the sample clock timing by calling DAQmxCfgSampClkTiming.

Check out the shipping example C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq-Int Clk

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 6 of 6
(1,356 Views)