LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ/SCXI/WAV file help needed....

I am using a SCXI-1000 chassis with cascaded 1140 and 1142 modules. The 1142 has a 1305 attached to it. The SCXI-1000 is cabled to a 6070E DAQ in my PXI-1000 chassis. I am trying to capture the analog information sent from the 1305 to the 6070E as a WAV file. Is this even possible WITHOUT a sound card? I am currently not using a sound card in my system. It seems as though the sound vi's can talk to sound cards only. Has anyone ever input an audio signal to a DAQ card and stored the data as a WAV file?
0 Kudos
Message 1 of 2
(2,621 Views)
It seems to me that you could do this. You would need to set your DAQ sample rate to one which .wav files use (8000, 11025, 22050, 44100). Sample the audio. You'll have to get the data as binary. You can do this directly with AI Read VI if you're doing a buffered acquisition.

Take the binary output of AI Read (there's an input on the AI Read for binary, scaled, or binary and scaled readings--select binary) and route it to the Graphics & Sound -> Sound -> Sound File -> Snd Write Wave File VI. There's an input on that vi to specify the speed of the acquisition. There's also 4 inputs for the type of format. Since you have a 12-bit MIO board (the 6070E), you'll have to use the 16 bit input. If you sampled one channel, you'll use the mono input, and if you sample
d 2 channel stereo, you'll use the stereo input.

Give the VI a filename, and viola! You should be able to write a wave file, playable on any sound card.

Mark
0 Kudos
Message 2 of 2
(2,621 Views)