LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling two chanels

Hello
I am trying to build a vi that can sample two channels at the same time.  They are both on the same device, a 6115 card.  The issue is that I am sampling 1/10 of the sample rate, and I want the second channel to start sampling the same data as soon as the first channel stops. ie channel 0 records from 0 to .1 second, then channel 1 from .1 to .2, then back to channel 0 from .2 to .3 and so on.  I tried using a flat sequence, but that only works well for a single iteration.  Any Ideas would be great.
 
Thanks
Lars
0 Kudos
Message 1 of 5
(2,736 Views)

Lars,

When you told you want to sample at 1/10 of the sample rate, did you mean that you want to sample at 0.1 samples per second. 6115 uses the same sampling clock for all the channels even though it has independent ADCs. So samples from all the channels will be taken at the same time. Now if you want 0.1or (1/10) samples per second, just give the sampling rate as 0.1 and do a continuous acquisition. But then you will get data on both the channels at 0.1, 0.2,0.3 ,...seconds.

BR
0 Kudos
Message 2 of 5
(2,722 Views)
Thanks for taking a look at my problem.  I am recording at 10^7 samples per second, and there is no way fpr the computer to process all the data so the number of samples is 10^6, ergo we only "see" the 1/10th of a second worth of data per itteration.  What I would like to do is continue sampling at this rate, but while the compuer is proccessing data from channel 0's 1/10 of a second long sample, to have channle 1 running at that time so we cna cover a larger percentage of the total time.
 
Thanks Again
Lars
0 Kudos
Message 3 of 5
(2,698 Views)

Lars,

It would be helpful if you can post your VI. What 'processings' are you doing? Why you say that you can only see 1/10th of a secods data? If you are not able to process at 10M S, try reading the data in smaller blocks.

BR
0 Kudos
Message 4 of 5
(2,685 Views)
Ideally, you should not set the reading rate more than 1/10th of your sampling rate.
BR
0 Kudos
Message 5 of 5
(2,682 Views)