08-03-2017 11:45 AM
hello, everyone. Is any one know how to convert data file to audio file?
I know that audio file can convert to data file in labview.
Thank you
08-03-2017 12:48 PM - edited 08-03-2017 12:54 PM
Do you know where the Sound functions are on the Block Diagram Palette? Look at the Help for Sound Output Write, which tells you most of what you need to know. It also should point you to an Example file, such as Generate Sound, which you can examine, play with, and modify to suit your needs (I recommend modifying a copy of the Example).
Bob Schor
P.S. -- to see the Help for a function, drag it to a Block Diagram, right-click it, and choose "Help", one of the top choices in the DropDown Menu.
Oops -- I just realized I answered the Wrong Question -- I showed you how to play a data file as though it were a Sound File. However, to play a sound, the first step(s) are/is to create some Sound Data, which is just what the Sound File functions want. So if you can Play it, you can Write it. Again, use LabVIEW's Help and check out the Examples (with links at the bottom of the Help document).
08-03-2017 12:54 PM
Do you even know how to do it outside of LabVIEW?
08-03-2017 12:55 PM
I guess you could slap a wav file header on it and call it a sound file.
08-03-2017 12:56 PM
I don't know yet
08-03-2017 12:56 PM
thank you. I will try
08-03-2017 03:03 PM
You need to try again to explain what you want. ALL files are "data files". What exactly are you trying to do???
08-03-2017 03:10 PM
I got waveform in labview and saved it in txt file and excel file. Then I want convert it to sound file. Is that possible? Thank u
08-03-2017 03:26 PM
Thank you for ur answer. Actually my qestion is convert a txt file( i convert signal which showing in labview graph to txt file )which include numbers convert to sound file or just signal convert to audio file in labview. Is that possible?
thank yiu
08-03-2017 03:34 PM
Have you checked out the Sound palette that was mentioned earlier?
You have 3 steps you need to do.
1. Read the text file.
2. Build a waveform using that data.
3. Write the sound waveform out to a file. The function in the Sound palette is called "Sound File Write Simple.vi"