LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound file in singel .exe file

I play sound (.wav) in my labview code. When I make executable code I have to save those .wav files and one .ddl file independently. Is there a way to put all the code in one .exe file?

 

 

Thank you,


Zoran

0 Kudos
Message 1 of 7
(3,310 Views)
No, but you can create an installer or a zip file for distribution.
0 Kudos
Message 2 of 7
(3,307 Views)
Yes you can do it. You have to read the wave file from disk then strip off the data. Then you "store" the sound data in a control by making the data default values. I prefer using a control with default values because reading a constant in labview is much slower


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 7
(3,298 Views)
Well, that's a different interpretation of "embedding" that I was thinking of, and what I assumed the poster was asking about.
0 Kudos
Message 4 of 7
(3,286 Views)

How do you "store" wav file in a control?

 

Thanks,


Zoran

0 Kudos
Message 5 of 7
(3,269 Views)
It is no big deal. You just strip the sample rate and data from the file (2D array). Then you pass this data to a standard sound output function. You may have the old sound system installed you will find it here ......\National Instruments\LabVIEW 8.6\vi.lib\sound\lvsound.llb It is not on the palette. If you do not find it I can send it to you. The file ....lvsound.llb\Snd Read Wave File.vi. Do this for you.


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 7
(3,261 Views)
While you could save the raw data of the sound file as either a block diagram constant, or as the default value of the control, keep in mind this will increase the data space requirements of that particular VI. Also, you cannot do this for the DLL that you were also asking about. So, it seems to me that doing it for only half of what you need seems a little pointless.
0 Kudos
Message 7 of 7
(3,254 Views)