LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Play aquired data of DAQ-card via Soundcard

Hi folks,
for some reasons I need to aquire Data per DAQ-card (noise on a
electrical line) an play them simultanously with via the sound-card.
Does anybody have an idea how to do this with LabView 5.1.

Rainer Ehrt
0 Kudos
Message 1 of 3
(2,980 Views)
I'll assume you'll acquire the data at the same rate as the sound card output (44.1kHz, 22.05kHz, or 11.025kHz) since you want to do this simultaneously (which, I assume, means also continuously). If not, you may need to interpolate or decimate your acquired data to one of these rates -or-not play the output continuously. Use AI configure and Sound Out configure outside your loop. Write some silent time to the sound out VI to prime the buffer, then do a sound out start and an AI start. Send the task IDs into a while loop, where you should do an AI read, process the data (if necessary) and write it out to Sound Out write. When you stop the loop, do an AI close and a sound out close. You'll still need to fill in quite a few details, but this structure should work.
0 Kudos
Message 2 of 3
(2,979 Views)
This example does exactly hat you want but is written in Labveiw 7
http://zone.ni.com/devzone/cda/epd/p/id/829

0 Kudos
Message 3 of 3
(2,818 Views)