11-25-2009 04:21 PM
I am having some problems understanding how to set up my cDAQ chassis. I have a working labview program that should (I guess it's NOT working!) sample 5 channels at 5 Hz each channel. When I get the data from the system each analog channel (all in the same task) looks to sampling at ~1.xx Hz.
I set up my task to sample 3 analog channels at 5 Hz, 1 sample per channel. Does this give me an effictive sample rate of 1.666 Hz sample per channel? This is waht my data seems to be telling me.
If the above is true, will changing my task to sample 3 channels at 15 Hz, 1 sample per channel give me an effictive sample rate of 5 Hz per channel?
The other 2 channels are digital and on a different task and seem to be working (fingers crossed!)
Thanks and Happy Holidays.
Kyle
I can post code if this question confusing.
Solved! Go to Solution.
11-25-2009 04:24 PM
11-30-2009 04:53 PM
Hello Kyle,
Thank you for using NI forums. What cDAQ module are you using, and are you doing continuous or finite acquisition? If your cDAQ module doesn't support simultaneous sampling then you are correct that the sampling rate will be divided by the number of samples, so if you would like to acquire at 5Hz on three channels then you should select 15Hz as the sampling rate. Please let me know if you encounter any problems.
Regards,
12-01-2009 10:08 AM
Brandon,
I am using a cDAQ-1972 with 9215, 9219 and 9401 x 2. The analog task is set up according to the picture attached. I need to sample each of the 3 analog channels 5 times per second. I have changed the rate to 15 Hz but have not tested it because I do not have access to the equiptment until tonight.
I have the two digital channels set up with DAQ assistant as quad incoders and they seem to work fine. For every three encoder readings I get only one reading from the 9215.
Thabks,
Kyle
12-01-2009 01:17 PM
Hi Kyle.Kyle
Check the below figure. It might be work for your data acquisition system. You can change according to your requirements later.
I tried to make a data acquisition vi according to your requriemetns. I preferred to use hardware clock rather software timing.
If you have any doubts let me know
Thanks
12-01-2009 02:06 PM
Viru,
Thank you for the reply. I may have a sample rate issue with my module and not my LabView program. Please see the pictures below. I set the system up to sample 100000 times at 5 samples per channel per second (finite samples). I still recieve data from the fist channel at a very slow rate. If I increse the rate to 10 samples per channel per second the problem only gets worse. NI saya this module can sample at 100 samples per second. I may have set it up wrong but at this point it looks like 1 sample per second is all that it can do.
Kyle
12-01-2009 02:29 PM
All,
Here is the problem.
http://digital.ni.com/public.nsf/allkb/1015F4182FB8A805862572D1006B4CC1
Thanks for your help. I am now going to try and change this setting!
Kyle
12-01-2009 02:41 PM
12-01-2009 03:07 PM
Dennis,
You are correct, none of the images show the entire program. The image 'Analog task.jpg' in my reply to Brandon shows my first sample setting with continouous samples. This resulted in a rate of appx 1.8 Hz.
I then took your advice and set 100000 finite samples at 5 samples per channel per second as shown in the 'Analog Task.jpg' in my last post. I recieved a sample rate of appx 1.8 Hz as well.
I then did some digging on the NI website and found that the NI 9215 was set to sample at 2 Hz for 'high resolution' according to the link above. I am currently trying to follow the instructions on that link but am having no luck. I fully expect that if I change my sampling rate to 'best 60 Hz rejection' or 'high speed' I will have solved the problem.
I don't understand why my DAQmx channel properties box gives me completely different options then the example on the link shows.
Thanks,
Kyle
12-01-2009 03:15 PM