I am facing the following issue while reading Analog Voltage data NIDAQ using
Failed with Error: -200077,
Error Text: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property. Property: DAQmx_SampQuant_SampPerChan Requested Value: 1 Maximum Value: 8589934590 Minimum Value: 2
Steps I followed are:
1. Created a task object using DAQmxCreateTask
2. Created a voltage Channel using DAQmxCreateAIVoltageChan
3. Configured sample clock using DAQmxCfgSampClkTiming
4. Read values using DAQmxReadAnalogF64
On step 4 this error occurs. Am I missing any steps?
I suspect the problem gets "set up" in step 3 but becomes apparent (and is then thrown) in step 4.
This sounds like an error where you configured SampClkTiming for Finite Sampling with a sample quantity of 1. The error message is telling you that the minimum # of samples in a task with a hardware sample clock is 2. (After all, the whole purpose of a hardware clock is to precisely control the interval *between* samples. The interval "between* 1 single sample is a meaningless idea. Like, "what's the sound of a single hand clapping?")
Solution: set the sample quantity to 2 or more. You can always choose to ignore samples you don't care about....