LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using vi from another project

I have two LabVIEW projects. One of them works fine. I want to use two VIs from the working project in my other project. However, when I copy the VIs to the other project, it states that the subVIs are not executable and there is an invalid method, refnum class and constructor. 

0 Kudos
Message 1 of 4
(2,456 Views)

You have the advantage of having a working set of Vi's.  Look at the broken Vi and then figure out how to fix it by looking at the working Vi.Smiley Wink

 

For example, the method is pointing to something in the working version.  But in the copied version that something is missing, so it is broken.  Since I don't have any code to look at I have no idea what it should be pointing to.

0 Kudos
Message 2 of 4
(2,443 Views)

What exactly do you mean by project? The issue you are describing sounds more like you are trying to use a few VIs from either a library or a class. Projects do not impose any restrictions on the scope of VIs. It would be much easier if you could post some screen shots of the project and indicate what you are trying to copy.

 

The real question though is why are you copying the VIs? If you take the time to organize your code correctly you should be able to simply reuse the code without having to copy it.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,417 Views)

Never mind I've got it. Thanks all.

0 Kudos
Message 4 of 4
(2,405 Views)