LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening or closing a Vi from two different Applications

Hi Natacha,

 


@Natacha_Kam wrote:

My main Problem is that my two Vis are not in the same Project. 


Simplest solution: copy the VI from your "other project" into your "first project"…

(Did you read message #7 from Bob?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 13
(174 Views)

Hallo,

 

i got what he meant. the Vi i want to copy from the other project is a complex vi that opens other SubVIs, TypeDef and .xml Files.so if i want to copy this VI i have to also copy everything inorder for the VI to be ran properly. 

 

0 Kudos
Message 12 of 13
(169 Views)

Hi Natacha,

 


@Natacha_Kam wrote:

the Vi i want to copy from the other project is a complex vi that opens other SubVIs, TypeDef and .xml Files.so if i want to copy this VI i have to also copy everything inorder for the VI to be ran properly. 


Then altenbachs suggestion to use a static reference is the next best thing to do!

You "just" need to debug your VI to know why it returns that "error 7"! That error doesn't pop up just from calling the VI, but it pops up because your VI tries to open a file with a wrong file path…

(Maybe one of those XML files is not found?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(161 Views)