8:15 pm
January 17, 2017
Hi,
I'm trying to develop my first Arduino library API and I when I compile my test API I get an error "Translator.vi could not be found. Please ensure this VI is part of the addon lvlib. It definitely is and its password protected (as are all of the other API VIs) so I'm at a loss as to what the issue is. Has anyone any insights that might help me?
I've attached the LabVIEW libary and Arduino source plus a .jpeg of the error message in a zipped up attachment.
Many thanks.
SimonC
9:21 pm
January 17, 2017
9:26 pm
January 17, 2017
Steffan said
The other issue is you have disconnected the Error In terminal in your Translator. That must be connected and you should not edit the Translator template aside from the Block Diagram.
That cracked it Steffan. I reconnected the error terminals on the connector pane and it now works (sort of). Lots of C errors now but these I can live with. Time to debug my declarations.
Many thanks.
8:50 pm
January 17, 2017
I've come back to the API tonight and worked through the compilation errors I encountered but I'm stumped again. When I try and verify my new test.vi using a modified translator I get the compiler error message I've attached.
I've added the defines in my library .cpp file to my Translator VI but there's no references to how these are declared in the documentation that I can find and there are no examples of the syntax in the addons folder.
Can anyone help please?
9:07 pm
March 12, 2015
In your original library, you did not name your libraries folder correctly. Refer to the help manual section "Porting an Arduino Library to the Arduino Compatible Compiler for LabVIEW".
Specifically:
libraries: This is where the Arduino library can be copied or any custom ".c" and ".h" files with the specific C implementation. The Arduino Compatible Compiler for LabVIEW will automatically install any libraries stored here such that Step 1 of this guide is not necessarily required. Although it is still good practice to execute Step 1 so that you can ensure the library is working with hardware within the Arduino IDE first. For the case of the template, there is one ".h" file with the implementation of the functions to be ported by the Add and Subtract API VIs.
If I rename your "C Code" directory to "libraries", then put the C code directly at that level (no sub directories), it compiles.
Or you can manually install the Arduino library as is described in Step 1 of this section in the user manual.
9:50 pm
January 17, 2017
Apologies if I confused things but I put a copy of the Arduino library in the LabVIEW API library folder so that I could bundle all the files up for you to see. I had already installed the Arduino library as per the manual and tested it on my Uno.
I've been trying to rework the translator vi but with no success. The compiler errors each time in the same manner. I've created a text file with the debug info in it and ttached it here with the latest version of the translator. Your help to understand where I'm going wrong would be much appreciated.
Many thanks.
10:06 pm
March 12, 2015
Can you zip your entire library and the VI that you are compiling? I only have your initial library post and the update translator you just posted and it compiles fine here. Based on your posted text file, the issue may be you have turned on DEBUG messages in the Arduino IDE and that output is making the Arduino Compatible Compiler for LabVIEW think there is an error. Try turning off DEBUG messages.
8
1 Guest(s)