LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6009 multiple analog inputs

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. 

I surf therefore I am....
0 Kudos
Message 1 of 4
(2,900 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,897 Views)

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.

I surf therefore I am....
0 Kudos
Message 3 of 4
(2,894 Views)

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,

Michelle G
Applications Engineering
National Instruments
Message 4 of 4
(2,865 Views)