06-27-2009 03:42 PM
Could someone try the following
On my laptop there is a 3s delay when this is first run. If the vi is re-run the sound plays back instantly.
Close the vi and open it again and the 3s delay is back the first time it is run.
(The timeout connection defaults to 0 this is defined as an instant return - see the help)
Is this a LabVIEW problem or my system? My workaround is to play a sound at the startup of my application so that all future sounds are instant.
I'm using LabVIEW version 8.5 on Vista.
Any ideas?
Al
Solved! Go to Solution.
06-27-2009 04:10 PM - edited 06-27-2009 04:15 PM
yes I get this delay as well I don't know why though hmmm
06-29-2009 09:57 AM
Hi all,
I did a simple test on my system and it was working fine, I didn't notice any delay as 3s long.
The Play Sound File.vi uses the DirectSound API installed on your OS to talk to the drivers of the sound card. Maybe try to update your DirectX to 9.0c (the version I have) or update your sound card driver.
06-29-2009 10:37 AM
I've got DirectX 10 installed (type Start/Run and type 'dxdiag' to find out your version) My sound card driver is the Dell recommended generic Microsoft high def. audio (latest version).
To ensure the sound plays back correctly on systems I have no control over (e.g. distributed exe) I'll play a "silent" sound during the application initialisation. Unless you can think of any tricks I can do make the DirectSound API respond quicker initially?
01-14-2013 03:38 PM
I leave an example that can provide, use it in your program
01-14-2013 04:44 PM
Hi,
could you save as LV11 or post a screen capture?
Thanks!
Al
01-14-2013 04:49 PM
Don't encourage him. He has been spamming the board with the exact same program. It is not very good. You are better off just looking at the example that comes with LabVIEW.
01-14-2013 04:55 PM
OK!
I had it fixed anyway with playing a silent file at startup.