LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How To connect a play sound file

I Have Put In My Block Diagram a Play Sound File I Press On it and Specified The File I Would Play but i didnt know how to Connect it And Enable It To Work 

0 Kudos
Message 1 of 3
(2,413 Views)

Have you looked at the examples? Look at sound player.vi

 

 

 

0 Kudos
Message 2 of 3
(2,396 Views)

Hi Chadfik and welcome to NI Forums!

 

What kind of sound file are we talking here? e sound i

 

If you have the sound infomation loaded into LabVIEW, the the easiest method is to use the Play Waveform Express VI. Just place it on the Block Diagram, and connect the sound data you'd like it to play.

 

For external files like an MP3, a media player ActiveX control is more appropriate. Please check out this snippet on how to use the Media Player ActiveX control.

 

Hope this helps.

 

Regards:

 

Andrew Valko

NI Hungary

Andrew Valko
National Instruments Hungary
0 Kudos
Message 3 of 3
(2,375 Views)