04-16-2013 10:53 AM
I am currently attempting to sample two different analog inputs at different sampling rates using a USB 6009. I keep getting the 'resource reserved' error and am wondering if this is not possible using this DAQ. Questions:
1. Does creating two analog input channels on the device cause this error?
2. Is it possible to sample at different rates on channels created in the same task? (i am trying to 'slow down' the second analog input to display switch points to a customer)
3. Running multiple analog inputs using independent timing would be better achieved by switching to a higher end DAQ? If so which would you recommend?
I have attached my vi. Thank you in advance for your help.
04-16-2013 10:58 AM
The DAQ boards only have 1 timing clock for the analog inputs/outputs. So you can only have 1 sample rate on a given card. I would recommend just sampling at the highest of the desired rates in a single task.
04-16-2013 11:01 AM
Ok, then my next question is this:
If I sample at the highest frequency, how can I lag the display of a signal so it is slower on the front panel? Attached is my updated VI.
04-17-2013 12:26 PM
Hi SurferEE,
Unfortunately, it looks like the most solid solution is to just accept the extra samples from the slower task. It is possible to programmatically change your code to throw out these extra values. Perhaps you could only write to your indictator every few iterations of the loop, but this implementation is up to you. I have attached a forum post that talks about this issue as well. Hope this helps!
http://forums.ni.com/t5/LabVIEW/Separate-sampling-rate-for-two-different-channels-for-a-USB-6009/td-...
Regards,