Hi all,
I am trying to use a sub-VI like a dialogue box, but I'm having trouble getting exactly what I need:
My main program has data acquisition running the whole time, so I don't want to pass control to the subVI or if the user takes too long (which will probably happen), then the buffers over-run and the whole thing crashes.
Global variables are one solution, but they are very slow and the main program is already huge and slow enough.
One potential solution is to construct the subVI so it doesn't contain any loops and so it passes it's useful data when the user finally gets around to pressing the OK (or Cancel) button. The problem is I set the VI to 'open when called', but not 'close whe
n done' (otherwise it would close every cycle and "blink"). When the user pressed OK, VI server sets the 'close when done' property and calls the subVI yet again, but the subVI's front panel is already open, so when I call it, it doesn't close.
Is there a way to force the window closed with VI server? Is there another way to force a window closed? Is there a totally different solution to this problem?
Any thoughts would be a great help. Thanks,
Casey