LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copying a vi into another vi

Hello,
I am stuck!
I have a large vi, which I need to use alongside an even bigger vi. Initially, i used an invoke node yo run the vi, but the problem was that within the vi I open and close a VISA resource name. Later on, in the larger program I need to use VISA again, but I can't re-open and reinitialise it. I also considered a sub vi, but the smaller vi (which would have been the sub vi) has too many inputs and outputs and requires user interaction. What do you suggest?
I am attaching my smaller prorgam- the one that initialises VISA.
I would really appreciate your input!
Thank-you,
Ivanka
0 Kudos
Message 1 of 2
(2,476 Views)
Have you tried removing the Close VISA in the VI you attached? If you are using an invoke node in a different VI to start this one, you don't need to close it in both. In fact, you are closing the same VISA reference and that's probably why you're having problems in the main VI. With newer versions of VISA, you don't really need to use the VISA Open and Close like you did in earlier versions.
0 Kudos
Message 2 of 2
(2,476 Views)