LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino interface does not work with renamed VIs

 

I installed the LabVIEW- Arduino interface and every example runs fine.

 

However, when I rename my application I get the error  "This VI is connected with a library that does not include the VI.
The VI might have been deleted from the library. Add the VI to the library again or select File»Disconnect from Library."

 

Even a copy and paste kills the VI, that is:  "Arduino Analog Read Pin.VI"  runs and "Arduino Analog Read Pin - Copy.vi" does not.

 

What am I doing wrong???

 

 

0 Kudos
Message 1 of 3
(2,550 Views)

@Microhertz wrote:

 

I installed the LabVIEW- Arduino interface and every example runs fine.

 

However, when I rename my application I get the error  "This VI is connected with a library that does not include the VI.
The VI might have been deleted from the library. Add the VI to the library again or select File»Disconnect from Library."

 

Even a copy and paste kills the VI, that is:  "Arduino Analog Read Pin.VI"  runs and "Arduino Analog Read Pin - Copy.vi" does not.

 

What am I doing wrong???

 

 


You shouldn't be editing or needing to make copies of libraries.  As a general rule don't edit any VI that is found on the palette.  Instead place these VIs on a new subVI that is your own creation using these libraries.

 

The VI you copied is part of the LIFA toolkit and part of the Arduino library.  The Library knows what VIs should be in it, and the VI knows what Library it belongs to.  When you make a copy the new VI still believes it is part of the Library, but the Library doesn't know the VI.  That is why it can't run.  The simple solution is to tell the VI that it doesn't belong to the library by using the Disconnect from Library function, but really this should never happen because you shouldn't need to edit, or copy library VIs.

Message 2 of 3
(2,507 Views)

Problem solved!

 

I did not realize I had the Arduino functions on the palette, including low level functions.  

I had loaded the example VIs from the directory LabVIEW/examples/Interface for Arduino/ and worked on them.

 

Now sensors work wonderful!

 

Thanks for the advice!

 

 

 

 

0 Kudos
Message 3 of 3
(2,489 Views)