11:06 pm
July 26, 2015
Hi,
I am currently evaluating the compiler to see whether it fits my purpose or not, before buying it.
Right now I want to import an Arduino Library to the compiler, but I am failing hard...
Maybe someone can can find the mistake(s) I made.
The API VIs right now are only consisting of an Error In- and Output, but the compiler always states "Arduino function "***.lvllib:***" not supported.
I also tried just copying the Template, but as soon as I rename a VI (renaming leads to the same Error as before)
Thank you all for your attention
12:11 am
March 12, 2015
Hello;
One thing that jumps at me by looking at your Translator.vi is that you missed placing the .h file inside brackets in the Includes definition array. If you open the Translator.vi for the Digilent Shield addon, which is the shipping example, notice how both include files are placed inside brackets <analogShield.h> and <SPI.h>.
I haven't tried your code, but as a suggestion, once you make the correction above, use the Arduino Code tool that is part of the compiler so you have access to the generated C code from your test VI, copy it and paste it in the Arduino IDE and make sure it compiles there. This is explained in details on the User Guide that is part of the User Manual.
Hope this helps.
Filipe
Cheers
Filipe
1:43 am
July 26, 2015
Hi,
thanks for the reply.
The bracket did not change anything, I added them anyways, to avoid further mistakes.
Sadly i cannot create any C code, since the error pops up while creating the C code.
I tried to copy the whole Digilent Shiel Addon, but as soon as I change the name of the VIs (as well as the cases in the translate VI), I have the same problems as in my example. It cannot be exported to C code due to the VIs "not being supported" anymore...
1:46 am
March 12, 2015
Oh, I missed that on your first post. Where did you save this library? The Arduino Code tool will only work if your library is saved inside the Addon folder, where the Digilent Shield one resides. Otherwise, the compiler will think it is a regular VI and will try to compile with the supported resources. Since it won't find your functions in the internal function dictionary, it will generate an error saying it is not supported.
Cheers
Filipe
19
1 Guest(s)