LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling multiple channels at the same frequency

Solved!
Go to solution

Dennis,

 

Company policy does not allow me to post entire programs.  I can either write a reduced program or post another snippet (below).  This code is nothing ground breaking but due to restrictons we are under I can't post an entire program.  All I am doing is reaing a sample from the buffer on each iteration of the loop and graphing it.

 

I still believe that changing the sample rate on my module from 500 ms to 10 ms will solve the problem.  The other two analog channels in the task sample fine.

 

Kyle

 

 

0 Kudos
Message 11 of 16
(760 Views)

Hi Kyle.Kyle

 

I agree with Denis. You have to change your read acquisition vi. I compare your two post images and both are differenet interms of defining the sampling clock. I think you define a wrong sampling rate. So try what i send you and put read acquistion vi in your main while loop. Might be solve your problem because I look at your code image and you are doing lot of analysis within a main while loop. So it may be kill your loop time. So check it and let us know.

 

Thanks

 

0 Kudos
Message 12 of 16
(747 Views)

Viru and Dennis,

 

Attached is a test driver and its output.  Would one of you be willing to help me set up my 9219 as outlined in this link? 

http://digital.ni.com/public.nsf/allkb/1015F4182FB8A805862572D1006B4CC1

 

 

Thanks,

 

Kyle 

Download All
0 Kudos
Message 13 of 16
(739 Views)

Disregaurd the last vi, I did not save it before posting it.

 

Kyle

0 Kudos
Message 14 of 16
(737 Views)

Hi Kyle. Kyle

 

Please check the image and try to implement your data acquisition system accoring to that. I don't have your hardware but this code which i made based on basic data acquisition fundamentals. In that code, I sample at 5 Hz and I acquire one sample per channels so my loop rate will be 200msec.

It might be fulfill your requirements also you do your analysis inside that loop.

 

If you have any doubts then let me know.

 

 

111.JPG

0 Kudos
Message 15 of 16
(708 Views)
Solution
Accepted by topic author Kyle.Kyle

Solution:

 

http://forums.ni.com/ni/board/message?board.id=250&message.id=54007#M54007

 

Thanks for the help.  I have not implimented this in my main program so I will keep your suggestions in mind if the sample rate again slows down.

 

Kyle 

0 Kudos
Message 16 of 16
(673 Views)