04-22-2009 08:11 PM
In a educational context, we want to discover how to stream voice data (perhaps five seconds) to a file, and then play that voice data back to a speaker connected to the DAC0 analog output pin on an ELVIS benchtop workstation. We know how easy it is to record and play back such data using the computer soundcard and easily available sound VIs. Out point is to accomplish the same taks, but using the DAQCard, rather than the sound card. (Again, this is to better understand DAQCards and LabVIEW.)
We have stored a sine wave from a signal general to a file, and we can write a simple VI to read this sine wave to a Waveform Chart.
However, the data is dumped. The timing is not 'real time.' It is a pseudotime, that reflects the actual times over which the data was collected, but not the timescale at which LabVIEW and the DAQCard read the data back. It is read back 'as fast as possible,' so no audio tone appears at the DAC0 pin.
We are at the last week of a LabVIEW for computer interfacing course. It would be nice to learn how to do this, and show it to our students (or be able to explain to them why our idea is bogus).
Thanks.
Dale Olson
University of Northern Iowa Physics Department
04-23-2009 03:46 PM
Hi Dale,
This Developer Zone Example shows how to stream to disk using DAQmx functions, and should help get you started.