02-27-2014 08:27 AM
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.
02-27-2014 10:42 AM
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.
02-27-2014 02:10 PM
HI, the sampling rate is 10Hz instead of 10KHz
02-28-2014 01:32 AM - edited 02-28-2014 01:33 AM
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??
02-28-2014 08:52 AM
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!
02-28-2014 10:01 AM
Reading the help of the index array function would be a starting point 😉
02-28-2014 01:27 PM
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:
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.
02-28-2014 03:15 PM