From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to play a wave file through the DAQ board?

Hi there,

we want to play a wave file that is saved on the harddrive via the DAQ board. Means we want to connect a amp to the analog output of the DAQ to amplify the sound and play it through a speaker.
We couldn't find any VI that does that. Can anybody tell us how to play a wave file, or perhaps even send us a VI that can do that?

Thanks a lot for your help

Martin - Physical Optics Corporation
0 Kudos
Message 1 of 2
(2,383 Views)
Hi Martin,

The only example that I could find on how to do this was using our older Traditional DAQ drivers version 6.9.3.  If you're using Traditional DAQ drivers, the vi can be found here.  The example reads a 8-bit mono .wav file (an example .wav file is included in the .zip file) and writes it to the analog out of your DAQ card.  I've updated the example to work with our newer DAQmx drivers and attached it here.  

I hope this helps,
Paul C.

Message Edited by Paul C. on 08-14-2007 05:47 PM

0 Kudos
Message 2 of 2
(2,360 Views)