Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send wav file to NI audio out

How do I send a wav file to the D/A Audio Out
of a 6071E.
A futher requirement is to send it out differentially
using channel 0 and 1
- Make Software User Friendly -
0 Kudos
Message 1 of 3
(2,792 Views)
I've attached an example to this posting. This example generates an analog output waveform on the board and channel specified. The waveform generated will be based on the WAV file selected. It is an example of the using a multifunction data acquisition board to play a WAV file on speakers.

Instructions:
1. Select the desired device and channel #.
2. Enter the path to your 8 bit mono WAV file. ( a sample WAV file is included in attachment below)
3. Enter the update rate for your Analog Output(AO) channel. This should equal the rate of your WAV file.
4. Wire your speakers to the Analog Output channel
5. Run it.
6. The program will continue to loop the WAV file waveform on the AO channel until you clickthe stop button.

How it works:
An 8 bit mono WA
V file is read from disk. After the data and header of the WAV file are extracted, the data is scaled from 0 to 1 V and then the entire waveform is written to the Analog Output channel specified. The example is set form continuous generation (or playback) and will continue looping the WAV files waveform until the stop button is pressed.

I hope this helps.

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 3
(2,792 Views)
When I posted this request, I selected LW/CVI but I see
that did not get recorded..so why did I have to select it ..

Anyway, I am looking for the above to run in LW/CVI
ver 6.0 with win2000..
It seems that LW/CVI is being forgotten!!
- Make Software User Friendly -
0 Kudos
Message 3 of 3
(2,792 Views)