Avoiding strings and Arrays | Arduino Compatible Compiler for LabVIEW Discussions | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Avoiding strings and Arrays
November 22, 2017
12:11 pm
Forum Posts: 7
Member Since:
October 31, 2017
sp_UserOfflineSmall Offline

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 ?


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)

November 26, 2017
6:24 pm
Forum Posts: 310
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

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.

December 3, 2017
3:41 pm
Forum Posts: 7
Member Since:
October 31, 2017
sp_UserOfflineSmall Offline


That makes perfect sence, thanks for taking the time to answer.


Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18


Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: lamstoresekay, Davidmam, Jerrykix, ABDALLAH, mattFitz

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89