Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6366 Input & output

I have a USB-6366 (Win 7, Labview 2011) that I need to use to acquire 4 analog inputs at up to 1 MHz while I use the analog output to generate an ultrasonic pulse (e.g.  5 cycle sine, hanning window, ≤ 300 kHz) for excitation.  I have a "producer consumer" VI that can acquire the data and a separate pulse generator VI.  I can start the data acquisition VI and tell it to save and then pulse the AO, but don't see any pulses in the AI saved data (or on the display), AO0 is connected to AI1.  I've tested this both at 200kHz sampling rate and at 20 kHz, with the same no signals result.  If I watch AI1 using MAX and pulse the AO, I see every pulse.  Any ideas why my producer consumer loop isn't seeing the pulses?  I would like to have both the input and output in the same VI eventually, so alternate ways of reading the AI would be fine.

 

Thanks,

Mark

0 Kudos
Message 1 of 5
(4,497 Views)

Hi Mark,

 

Would it be possible for you to post your VI?

Josh B
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(4,462 Views)

Hi Josh,

 

Here's the code.

 

Mark

0 Kudos
Message 3 of 5
(4,453 Views)

Hi Mark,

 

Nothing jumps out at me as causing this behavior in your VI, but there are several subVIs that were not included with your post.

 

A couple of things you could check: 

 

If you just run the acquisition part of your code, can you detect another voltage source?  You could try just reading in the +5 pin to ensure that your acquisition code is working properly.

 

Another thing you could check is to just run the generation part of your code and then use an example analog input program to see if you can detect the pulses you are sending.  DAQmx examples can be found in LabVIEW by going to Help >> Find Examples and then navigating to Hardware Input and Output >> DAQmx.

Josh B
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(4,437 Views)

Josh,

 

Appreciate your looking into this.  Since the producer/consumer approach didn't seem to be working, I tried an alternative based on the synchronized analog in and analog out example.  I got one version of that working nicely yesterday, so I think I'll abandon this producer/consumer approach.  

 

Cheers,

Mark

0 Kudos
Message 5 of 5
(4,433 Views)