Record Sound Signal from DAQmx in LabVIEW

Updated Oct 29, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I am measuring an analog sound signal using a DAQ card and DAQmx functions. How can I save or record this sound signal for later analysis? 

Solution

Native LabVIEW functions allow writing waveforms into a WAV file. The Sound Palette contains multiple VI's to Open, Write, and Read WAV files. See the Help description for the LabVIEW Sound VI's for further details.
 

Figure 1: Sound VIs Palette

The Sound and Vibration Toolkit and Sound and Vibration Measurement Suite also contain functions to write waveforms to a WAV file.

Use the shipping example Write Waveforms (DAQmx to WAV File) that acquires data on one channel of a DAQ device and then records that data to a WAV file. It is included in the Sound and Vibration Toolkit. 
 

WAS THIS ARTICLE HELPFUL?

Not Helpful