Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

The sampling rate is not as what I set

 In my DAQmx, I set the sampling rate at 20 kHZ (Picture 1 ), but the data I acquired was sampled at 10Hz rate (Picture 2).

 

Who can help me? Thank you.

 

My VI is attached.

 

 

Download All
0 Kudos
Message 1 of 8
(4,487 Views)

The Rate is in Samples per Channel per Second.  So since you have 2 channels, your sample rate for each channel is cut in half, resulting in a 10kHz sample rate.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(4,456 Views)

HI, the sampling rate is 10Hz instead of 10KHz

0 Kudos
Message 3 of 8
(4,445 Views)

Just guessing:

You sample 5k samples with 20kS/s , but your indexing of the array seems to be wrong, so you pic (and mix) both channels instead of 2 times 5k samples you save 2 times 2 samples.

5k with 20kS/s each 1/4s * 2   ..... do you have 10Hz or 8Hz samplerate in your  data??

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 8
(4,418 Views)

I think you are right. You said my indexing of the array seems to be wrong. How chould I change the indexing of the array.

 

Thank you!

0 Kudos
Message 5 of 8
(4,407 Views)

Reading the help of the index array function would be a starting point 😉

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 8
(4,394 Views)

Jaseon,

 

I think the issue is that you are getting columns (samples) of data back when you index your array and not rows (channels) like what you want. I believe this is what Henrik is mentioning. Change the VI as shown in the picture below:

 

try.png

 

Wire the 0 and 1 constants into the Row inputs (not the column) of the Index Array VI. You should also right-click on the Build Array function and make sure that Concatenate Inputs is disabled.

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 7 of 8
(4,383 Views)
Any discussion of sample rate rate with a DBL array is meaningless. There is no timing associated with the samples.
0 Kudos
Message 8 of 8
(4,374 Views)