05-18-2023 12:31 AM
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.
Solved! Go to Solution.
05-18-2023 07:18 AM
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
05-18-2023 08:25 AM
Surprisingly, USB-6001 actually supports hardware-timed output.
What is the error code reported? Did you configure the sample clock timing? Please attach the code so that we can understand better.
05-18-2023 07:22 PM
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.
05-18-2023 07:29 PM
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.
05-19-2023 08:14 AM
@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