> I just noticed that when the .wav files are playing, ALL vi's in the
> entire hierarchy stop executing, not just this subvi with the "Snd
> Play Wave File.vi"! This is not acceptable, my monitoring and logging
> functions need to keep operating.
>
> Is there a way to "wait until finished" only locally? Is there a way
> to see if the play VI is finished?
> The only thing I can think of is to time every .wav file and set up a
> table of filenames and length in time and look up how long to wait,
> but there are a lot of .wav files and this adds complexity to
> maintenance/updates.
Does the code playing the .wav uses a DLL, ActiveX, or the sound VIs?
Most likely, this code is running in the UI thread of LV, and it will
affect the other code in LV that mu
st run in the UI thread including
indicator update and property nodes.
If it is possible to affect the wav playing to run in another thread,
the UI in LV will be free to process events or draw. If not, the
diagram should run normally until it needs to execute code that requires
the UI thread, and it will also keep the UIs from updating, even if the
diagram is running. To test, you might make a VI that increments an
integer every milliseconds or something. Before and after playing the
..wav playing, is the timer affected in execution, or just in its ability
to update displays?
Greg McKaskle