01-17-2008 09:12 PM
01-17-2008 10:02 PM
While there's a missing sub-vi "load and run", I'm guessing the top-level VI launches the sub-vi without waiting for it to finish running, then the top-level VI terminates immediately. If load-and-run uses the "run" method, there's a boolean input that will make it wait until Wav.vi finishes - but then the sub-panel wouldn't get the VI reference until after Wav stopped!. There's probably more than one way to accomplish what you're trying, maybe the attached VIs will give you an idea. ;^)
01-18-2008 01:28 AM
01-18-2008 01:32 AM
01-18-2008 01:39 AM
Hi astroboy,
i found all needed vi´s and i can start the program, but i don´t understand your question. What do you want to do?
Mike
01-18-2008 02:10 AM
01-18-2008 02:53 AM
01-18-2008 03:18 AM
01-19-2008 01:52 AM
Hi Clement,
I don't really understand your question, Clement. Since Sub-VI's like Wav2.vi, register and unregister themselves, the Sub-panel management is handled automatically. If you simply want to wait until a Sub-VI finishes, before continuing with execution, then put the VI in a sequence, or connect some indicator on it's connector-pane to a subsequent VI/sequence/case/etc. Knowing when a VI has finished executing shouldn't be difficult!
Cheers.
01-21-2008 06:37 PM