12:11 pm
October 31, 2017
In the manual for the Arduino Compatible Compiler for LabVIEW is stated that :
It is extremely important to note that, although the compiler includes a level of optimization algorithms, the use of arrays and strings are highly discouraged when targeting the Arduino Uno and similar targets, due to their very limited available RAM.
Is there any way to avoid using strings as input to the "LiquidCrystal_I2C write String.vi", or rather is there any way to avoid using strings when writing to an LCD ?
/søren
p.s. The compiler does a great job in most cases when using strings and arrays, but I have found out that its still safer not to use strings and arrays (if possible)
6:24 pm
March 12, 2015
There is really no way to avoid it in this case unless you write one character at a time using the write U8 function. In this case there is no concern when writing a constant string because the string manipulation is handled by the Compiler. The risks referred to be the manual mainly are directed towards doing extensive string and array manipulation in LabVIEW code because it can be prone to memory copies, fragmentation, and memory leaks.
5
1 Guest(s)