aikenlv Posted March 14, 2016 Report Share Posted March 14, 2016 hi, how to open the same vi in multi sub panel one by one and closing also.... Quote Link to comment
ensegre Posted March 14, 2016 Report Share Posted March 14, 2016 Like this for example with a reentrant VI? Quote Link to comment
aikenlv Posted March 14, 2016 Author Report Share Posted March 14, 2016 thanks for replay i need dyanmically loading remove the vi form all sub panels for example i have 5 subpanels i am trying to load same vi in all sub panels one by one . I will close any one vi in the sub panel and again i load same vi which is empty sub panel..if have any example or solution share with me... Quote Link to comment
ensegre Posted March 14, 2016 Report Share Posted March 14, 2016 ? http://zone.ni.com/reference/en-XX/help/371361M-01/lvprop/subpanel_removevi/ Quote Link to comment
aikenlv Posted March 14, 2016 Author Report Share Posted March 14, 2016 i did't get logic how to achieve that... Quote Link to comment
ensegre Posted March 14, 2016 Report Share Posted March 14, 2016 My snippet above dynamically loads four clones of the same [reentrant] vi (the high resolution timer just as an example), opens them in each of the four subpanels, and closes them when you press the stop button, like I understood you asked originally. Here a slightly more elegant variation of it, btw: What do you want to do instead? A complete event-driven application with buttons for closing or reopening the clones in each of the subpanels? Left as an exercise, but the mechanics would be an event loop with Insert VI and Remove VI invoke nodes for each button pressed, I guess. Quote Link to comment
aikenlv Posted March 14, 2016 Author Report Share Posted March 14, 2016 thanks i send a file to you please check it... Quote Link to comment
ensegre Posted March 14, 2016 Report Share Posted March 14, 2016 I understand even less what you want to do. Maybe you're better to post your code in the thread, someone else may fill in and help reviewing it. Or use a bottom up approach, first submit a minimal example which addresses clearly the behavior you're missing, and only that, for the group to help; add the rest later on in your private application. Also, please don't send VIs with FP or BD diagram saved as maximized, it can be annoying to some. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.