LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert data file to audio file in Labview

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

0 Kudos
Message 1 of 19
(6,959 Views)

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).

0 Kudos
Message 2 of 19
(6,937 Views)

Do you even know how to do it outside of LabVIEW?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 19
(6,933 Views)

I guess you could slap a wav file header on it and call it a sound file.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 19
(6,930 Views)

 I don't know yet

0 Kudos
Message 5 of 19
(6,927 Views)

thank you. I will try

0 Kudos
Message 6 of 19
(6,925 Views)

You need to try again to explain what you want.  ALL files are "data files".  What exactly are you trying to do???

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 19
(6,899 Views)

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

0 Kudos
Message 8 of 19
(6,894 Views)

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

0 Kudos
Message 9 of 19
(6,887 Views)

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"

0 Kudos
Message 10 of 19
(6,883 Views)