8:26 pm
January 17, 2017
I'm trying to port a LCD display library for use with the LCC and I'm struggling with the translation process.
The native library has a print line function that displays as string starting at the current write marker position and uses an array of characters as it's input. When I implemented this using the LCC translation process the LCC interpreter assigned the string to a variable and then tried the pass the variable to the function which won't work, because a string isn't an array of characters and I get garbage on the display.
I then modified my interface VI for the 'println' function to use a byte array as it's input and convert the string to a byte array within the test VI using the 'string to byte array' icon from the LCC palette. Now I get a number of compiler errors that suggest the LCC isn't converting the string to a byte array. I've attached a screen image of the error. If I try and generate the Arduino code I get a different error that suggests that something is wrong with the interpreter as it doesn't like any of the LCC palette functions. I've uploaded an image of this error also.
I've also uploaded my LabVIEW library and the original Arduino LCD display library for my Maplin display.
Any help would be appreciated.
8:41 pm
March 12, 2015
Take a look at the user manual section "Porting an Arduino Library to LabVIEW". It talks about using the .ptr() method to return a pointer to an array. That may be what you are looking for in the first issue. For the Arduino Code option, you cannot have primitive functions is the code. That option is meant to help with the translation only and it will return an error if you include primitive LabVIEW functions in the code. Again, this is discussed in the user manual section referenced here. Please read it.
26
1 Guest(s)