03-06-2014 03:49 AM
Hi
I am trying to load aa VI into a subpanel control. However the loaded VI is not visible. In the attached picture I have used Invoke method Open FP.. I have also tried the Run VI method and property node.
any suggestions would help
Solved! Go to Solution.
03-06-2014 08:24 AM
Open FP will not work as you cannot load a vi that is already open into s sub-panel. However, if the vi to be loaded into the subpanel is not open you shouldn't have any problems as long as the vi with the subpanel is running. It does not matter if the vi loaded into the subpanel is running or not, although it may be confusing if it isn't.
So make sure the vi to be loaded is not open, and the loading vi does not stop. See also http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/loading_panel_in_subpanel/
03-06-2014 09:13 AM
Thanks for the link. But the VI is not properly loaded, the subpanel remains blank. There is no error, cannot figure out the reason
03-06-2014 09:31 AM
Remove the Open FP invoke node. You don't need that. Also make sure your VI is set to not show the front panel when loaded or when ran.
03-06-2014 09:33 AM
Are you sure that the front panel of vi you want to load is not open before you load it?
03-06-2014 11:11 PM
I am trying to reload the currnet VI dsiplayed in the subpanel. The VI front panel is closed using Close FP before loading it in again. I have checked all the references, paths are correct. The attached image is the code for the event handler.
03-07-2014 12:37 AM
I don't think this code can run without errors.
Instead of using the "FP.Open" try setting the FP State to "Hidden" and then insert.
Shane.
03-07-2014 05:46 AM
How big is the panel you're trying to insert? The top left corner in the subpanel will be the top left corner of the opened VI, so if it's way bigger, it'll look blank.
/Y
03-07-2014 05:51 AM
@Nustian wrote:
Thanks for the link. But the VI is not properly loaded, the subpanel remains blank. There is no error, cannot figure out the reason
When you say there is no error, are you sure? Normally trying to insert a VI with an open FP into a subpanel gives an error. Place a probe on the error output of the "Insert" node and you'll most likely see an error resulting there.
Again, set the state of the FP to "Hidden" before inserting.
Shane.