12-05-2018 08:20 AM
Don't know how to search for this in existing forums, so I'm creating a new post:
I have a Main.vi with 2 subpanels. Main.vi calls a subVI, let's call it "example.vi", that I display in Subpanel1. Within the execution of example.vi, another subVI is called - let's call it "examplesub.vi". When examplesub.vi gets called by example.vi, the FP of examplesub.vi replaces the FP of example.vi in Subpanel1. I would instead like to have the FP of examplesub.vi be displayed in the second subpanel, Subpanel2. Is this possible? Can I pass a reference of Subpanel2 to example.vi to open examplesub.vi in Subpanel2 or something?
Intended end use is to call example.vi in Subpanel1 which contains a comments field for the user to fill. When the cursor is placed in the text field, a keyboard.vi appears in Subpanel2 so that the user can type a message in keyboard.vi. When the user hits submit, the message is populated in the comments field in example.vi. It would be fine to temporarily replace the FP of example.vi with keyboard.vi in Subpanel1 except that the keyboard needs a much large size subpanel to be fully displayed.
Appreciate any help! Thanks!
12-05-2018 08:35 AM
Yes this is possible. You just need to use the appropriate references to the subpanel. You may want to look at the panel management toolkit from MGI. You can get it from VI Package Manager. It would help you with all of your panel management tasks.