To get around this behavior in LabVIEW, it is possible to load a single VI into more than one subpanel if that VI is saved as a VI Template. A VI Template, as explained in Differences Between Reentrant, Template, and Dynamic VIs
, is a VI that is designated as a starting point for developing other VIs. When opened, the VI Template itself is not opened, but rather a new and separate VI is created and loaded into memory. This behavior is useful in this scenario because when each Insert VI method node is given a separate reference to the same VI template, each will load a new and separate instance of the VI in its respective subpanel.
To avoid Error 1145
, it is also necessary to create two separate dynamic VI references using the Open VI Reference function in LabVIEW. This will keep LabVIEW from seeing the VI as the same VI due to the two of them having the same VI Server refnum.
For an example of how this solution might be accomplished, please see the NI Community example entitled Load Two Sub Panels with Same VI Using VI Template (*.vit)