LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do generate sound until user presses ok button on dialog box

Hi,
   I want to generate a sound until user presses ok button of dialog box. Is there any way to do this. Please help me in this regards.
 
 
Regards
Shiv Singh
0 Kudos
Message 1 of 3
(2,295 Views)
Hi Shiv Shingh,

i will recommend you to programm your dialog box by yourself. You have to create a vi which appears as an dialog box. In the background you can play your sound until the user press the "OK"-Button.
You can realize this i.e. with the event structure and SO_Start.vi & SO_Pause.vi & SO_Stop.vi.

Regards

Indiana

0 Kudos
Message 2 of 3
(2,288 Views)
Hi Shiv Singh,

Depending on what type of sound you want to output, there are different solutions for what you want. In case you have a WAV-file with a certain length, you can simply keep repeating it with the "Snd Play Wave File.vi" inside a loop. If you want to create a waveform programmatically and output that as a sound, I will recommend you to take a look at the shipping examples that comes with LabVIEW. There are many good examples to be found under "Browse
» Building User Interfaces » Playing Sounds".

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 3 of 3
(2,262 Views)