11-01-2013 09:41 AM
I know it must be simpler than I am making it, but somehow I just can't seem to get it to work right. I am using a myDAQ taking in analog voltage data and wanting to play it back (with some filtering) either through its onboard audio out jack or through my computer. I seem to not understand exactly how the DAQmx voltage output is supposed to work; using anything other than the express VIs so far has just given me errors. Using the express VIs, I've only been able to sample and playback delayed chunks of data, with gaps between them (not exactly ideal).
Getting some sample code could help greatly in understanding how this process should work, and would probably be helpful to many other people as well. Thanks.
Solved! Go to Solution.
11-01-2013 12:55 PM
Have you looked at the shipping examples? Check out Help > Find Examples... Hardware In and Out > DAQmx > Analog Input for reading in your voltage wave.
Help > Find Examples... Hardware In and Out > Sound for playing back those waves with a sound card. You'll have to cobble together the Input code and Output code to make a continuous sound recorder/player, then add your filtering between them. Those examples all use the DAQ and Sound primitives so you won't be hobbled by the lame Express VIs.
What is your sound source? You will need an external amplifier if you're using a microphone to get a decent single range for your DAQ.
11-01-2013 02:27 PM
I think this example does exactly what you want. It takes in analog input from the myDAQ, then has the option to add a filter, and then output it back. I don't remember where I found it but it was in some workshop for learning how to use the myDAQ and LabVIEW.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-08-2013 02:35 PM
The given example did exactly what I needed it to. I had set up my code almost identical to this, but apparently had some setting mismatch between the input and output express VIs.