06-01-2016 08:09 AM
Hello,
Does exist a simple way to integrate one VI into another ... both having quite rich GUI.
I've proceed in following manner:
Then when I have a look at resulting block diagram, I see that block diagram staff from SLAVE VI is scatterd over original block diagram.
Thanks in advance
Solved! Go to Solution.
06-01-2016 08:13 AM
Hello Pavel_47,
I used subpanel instead of tab. It takes more times to develop but the result is a lot better and the called VI can be independent from the calling one.
Regards
06-01-2016 08:30 AM
Hello Sabri,
I didn't properly understand your suggestion.
Once subpanel created, I put there SLAVE front panel staff. Correct ?
First, it doesn't correspond to the initial idea - easily alternate 2 views, MASTER and SLAVE. I think TAB control is quite appropriate for such things.
Second, copy-pasting the SLAVE front panel staff doesn't reslove the problem: "new" block diagram staff is still scattered over the "old" one creating total confusion.
06-01-2016 08:31 AM
Greetings! Are both of them used all the time? Or is one of them more of the "do some stuff, then not needed for a while" variety? If one of them is used rarely, you might be better off spawning that as a dialog, and communicating the data to the main VI via a cluster or global variables.
06-01-2016 08:35 AM
They both are used at the same time ... more or less
06-01-2016 08:37 AM
The idea ost to avoid to "copy-paste" front panels 😉
"Integrate one VI into another" ok but if you put all the FP of the sub-VI into the main VI, you have duplicate FP. Master -slave, it doesn't matter.
You have a main VI, inside you can include one or several subpanel. In those subpanel you can load FP of any VI you want.
Regards.
06-01-2016 09:12 AM
Thanks !!!
I applied the path of SLAVE VI to subpanel; on FP I've put this suppanel into 2nd "SLAVE" tab of TAB control and it works !
06-01-2016 09:17 AM