07-22-2014 03:48 PM
I am using a PXIe-1073 Integrated MXIe daq with an analog input/output card (NI PXI-4461). I have a .wav file saved to my desktop and I want to play the the .wav file through the analog output card to drive many speakers (10+). I also want to be able to change the voltage level of the signal. I looked on a bunch of threads but none seem to provide what I am looking for.
I iniitally thought I had to use the DAQ Assistant to generate the signal, but then I realized there was no option of using a .wav file and changing the voltage level. I have read that I need to convert it to a TDMS file then write it to the output channel but I still don't know where the voltage change would fit in. At this point, I am just confused at which approach I need to take.
Any help would be much appreciated.
Thanks,
Connor
07-22-2014 04:00 PM - edited 07-22-2014 04:01 PM
Use the Sound File Read Simple function under the Graphics and Sound >> Sound >> File palette. This reads the file and returns a waveform. That waveform data type can be wired to a DAQmx Write function giving it single channel multisample output. Relativly easy and there are examples shipped with LabVIEW showing each half, reading the file, or outputing a wave.
As for amplitude just multiply the Y component of the waveform by a multiplication factor.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-22-2014 04:15 PM
07-23-2014 12:01 PM
Alright so you are saying something like this
07-23-2014 12:06 PM
Not sure if the picture sent
07-23-2014 12:06 PM
My bad, here is the picture
07-23-2014 12:09 PM
here is the picture, sorry for the amount of posts to get this
07-23-2014 12:36 PM
07-23-2014 01:46 PM
Alright, this is what I have so far. I had an error (200462) but I looked on another forum and found that I can fix it by putting "write data" twice.