LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert .csv to .wav file

Solved!
Go to solution

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?

0 Kudos
Message 1 of 11
(10,003 Views)

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!

0 Kudos
Message 2 of 11
(9,994 Views)

19955iFADF8ADE2D08FC3C


😛

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 11
(9,983 Views)

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.  

@jcarmody

How does your program work? have you tested it 😉



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 11
(9,965 Views)

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.

0 Kudos
Message 5 of 11
(9,930 Views)
  1. I need to apologize for my post as it was meant to be a joke.  I'm sorry for misleading you.
  2. My VI only changes the extension of the csv file.  It doesn't do anything to the file contents.
  3. Take a look at what Coq Rouge wrote.  Your equipment might not be adequate.
  4. The image actually contains the code (in LabVIEW 2009) - it's a code snippet.

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 11
(9,928 Views)

@Coq Rouge

 

Can you please reveal more? Or suggest your solution to the problem?

0 Kudos
Message 7 of 11
(9,920 Views)

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.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 11
(9,898 Views)

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

Download All
0 Kudos
Message 9 of 11
(9,860 Views)
Solution
Accepted by Karmasura

As it happen, you had some luck. As I allready have done such an example. Is the NI-6009 out of the picture?



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 10 of 11
(9,846 Views)