07-27-2010 03:15 AM
Friends,
Need some help converting a .csv file to a .wav file in labview for playing over the speaker. Can anybody please help with a .vi file straight away?
Solved! Go to Solution.
07-27-2010 04:23 AM
Once the .wav file is to ready, it also has to be played out over a speaker and generate the frequency sweep for the waveform. This speaker generated sound through a NI USB 6009 will then be fed to a filter circuit, and the output of the filter has to be accepted as an input through DAQ NI USB 6009 and microphones to a sound input vi, wherein I need to analyze the magnitude and phase response of the filter circuit. So, I need help with the frequency sweep as well!
07-27-2010 05:02 AM - edited 07-27-2010 05:03 AM
07-27-2010 07:29 AM
Before you do more work on your project. Have you looked at the 6009 specs here http://sine.ni.com/nips/cds/view/p/lang/en/nid/201987
The 6009 unit have a maximum analog output rate equal to 150 Hz AND the output is software timed. So I think your project is not doable in your current setup. But almost all PCs are equipped with a sound card. And Labview can handle sound cards IO.
How does your program work? have you tested it 😉
07-30-2010 02:26 PM
Hello,
Sorry for replying late, but can you please post the .VI file that you made instead of the .jpg file? I'm a newbie here and having a hard time interpreting what signal boxes you used for example, I can't find on my edition of labview the box which you connected to the $csv and wav string constants and the one on which it says ab --> cd file rename.
07-30-2010 02:34 PM - edited 07-30-2010 02:35 PM
07-30-2010 02:45 PM
@Coq Rouge
Can you please reveal more? Or suggest your solution to the problem?
07-31-2010 06:24 AM
A Vi tell more than 1000 words. You should post the code you have made so far. So I can an idea of what you are trying to do. It does not have to work.
08-01-2010 10:28 PM
Ok, I have solved the original issue but need more help. Here are a few more questions:
The "vijaydhwani v2.vi" file is a modification of the typical "generate sound input.vi" file with calculations for magnitude and phase response of a filter. You can adjust the frequency and the amplitude of the sound wave, which I have fed to the digital iir filter block (we have to simulate a low pass 100Hz filter) and the whole set up is used to get magnitude and phase response of the filter.
The "vijaydhwani v5.vi" file is a modification of the "vijaydhwani v2.vi" file, where I have replaced the sound wave element of the earlier setup with another element from the typical "sound file to output.vi" file to read the .wav file.
Now, I eventually solved the conversion issue of .csv to .wav file by saving the .csv file as a .wav file in "Goldwave" (it's a software). The "vijaydhwani v5.vi" plays this .wav file and computes the output. However, I need similar controls as in "vijaydhwani v2.vi", that is I should be able to play the sound file continuously (in a loop?) and have control over its frequency and amplitude. Is that possible? Can you send me a complete modified file of "vijaydhwani v5.vi" that plays the arbitrary sound wave and also give me similar control over it as in "vijaydhwani v2.vi"?
I am attaching the "vijaydhwani v2.vi" file and the "vijaydhwani v5.vi" file
08-02-2010 04:36 AM
As it happen, you had some luck. As I allready have done such an example. Is the NI-6009 out of the picture?