04-12-2010 07:26 PM
I have a couple of big setup VI's that I would like to run in the following manner:
Sometimes the VI runs with its front panel showing and interacting, to let the user establish settings. Complex output is computed based on these settings, and tested for validity. At other times, the VI runs without interacting, simply doing computations based on the retained state of its controls.
I know how to create a VI call node that causes the VI's front panel to appear, and I know how to create one that doesn't. But I wish I could get the VI to decide whether to pop up its own front panel, and then pop it up at the time of its own choosing. For example, only if something goes wrong. Is there any way to do this? I'm guessing there's something with a VI reference, but I can't find it.
Ken
04-12-2010 08:02 PM
Well, you can use Front panel State property to control appearance of your vi - standard, minimized, hidden, etc. The property node is saved in the attached vi.
Regards,
Serge
04-26-2010 04:18 PM
Almost, but not quite, I think. This is what happened when I tried to use your technique on a VI that is intended to show its front panel only when there is an error.
I think the property node only works when the panel is already open. Thoughts?
04-26-2010 04:54 PM
Ken Brooks wrote:Almost, but not quite, I think. This is what happened when I tried to use your technique on a VI that is intended to show its front panel only when there is an error.
I think the property node only works when the panel is already open. Thoughts?
It should work if the vi is open, so from within it should work. Else you'll have to open a vi reference to yourself and open it that way.
04-26-2010 06:01 PM
Ken,
Here's a VI from my user.lib that may be of use.
James