> I need to periodically call a child vi. One the first call i need to
> make it child and in subsequent call need to assertain if any event
> had occured. Basically a non blocking vi. But for a child vi, the
> front panel disappears once 1st execution is completed. Labview also
> crashes if i dont explicity close the front panel programatically.
> Does anyone know a way around this?
We don't use the term child VI. Do you mean a subVI, or a VI whose
window has been made a child of another VI window.
Some advanced customers have use the SDK calls to reparent one VI to
another, but be aware that when LV changes certain window attributes, it
recreates the host window or HWND. This means that the reparenting can
be invalidated. This can be avoided if the VI
is reserved first, either
by making it a static subVI, or by getting its strict VI Server
reference up front. Also, as you have noticed, if you leave the windows
attached like this and LV tries to recreate its windows with new style
bits, it gets odd events from windows that it doesn't handle well.
If you are looking to make child windows, you should probably use
someone elses VIs that handle most of these details rather than starting
from scratch. Search the various web sites such as Georg Zhou's.
Greg McKaskle