08-07-2012 01:00 PM
Hi All
I have two VI's. A mainVI and a SubVI. The main calls the SubVI when it is run.
I am programming it for three different cases.
1st Case:"
I want only the MainVI to show up when I run the code. In other words, I have blocked the SubVI from showing up as a pop up.
2nd Case
I want to design a control, like a switch from which I can decide which VI to operate on
3rd Case:
I want it to directly go to the SubVI and not show the MainVi at all.
I am doing it using a Case structure.
But the problem is that, if I disable the SubVI from showing as a pop up for the 1st case, then it doesnt show up on the 2nd and 3rd case.
So my question is, is there any other way I can change the property of the VI (to enable/disable pop-ups) other than opening the property of that VI and modifying it?
08-07-2012 02:34 PM
Very easy to do!
Use the open FP method to Set the FP State or use a property node to set behavior (or set any of the window appearance properties)
08-07-2012 02:40 PM
Also, the way I am doing it right now is to copy the vi in every case. Is there a better way to do it?
08-07-2012 02:55 PM
@Mr Miagi wrote:
Also, the way I am doing it right now is to copy the vi in every case. Is there a better way to do it?
There is no problem in doing this way.
For your original question.
Do not Enable the vi property to Show front panel when called uncheck these option in the vi properties and do that in the instances you use in the main vi. Do this way
1. Place the sub vi in the main vi for which you want to show the front panel.
2. Right click the vi and go to sub vi node setup and Enable show front panel when called.
3. Place the sub vi which you don't want to show up
4. Right click and make sure that in sub vi node setup the show front panel when called option is unchecked.
simple
Good luck