Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 6878

DAQmxCfgSampClkTiming sets the rate incorrectly

$
0
0

Hi,

 

I have run into an issue involving the getting and setting of the sample clock rate. My workflow is as follows:

 

1) Create a task

2) Create an AI Voltage channel

3) Set the rate to 10000 using DAQmxCfgSampClkTiming

4) Get the rate using DAQmxGetSampClkRate

5) If I get this rate and print it using the following command, I get a slightly different number(10000.00000885847800000000000000000000) :

printf("Rate = %.32f\n",rate);

I have attached sample C code that demonstrates this. 

Is this a bug? If it is, can you provide a CAR number so that we can track this. 

 

Thanks,

Varun Hariharan

MathWorks

 


Viewing all articles
Browse latest Browse all 6878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>