04-11-2012 04:01 PM
What's the best way to convert a string into an array of characters?
Thanks.
Solved! Go to Solution.
04-11-2012 04:03 PM
04-11-2012 04:29 PM - edited 04-11-2012 04:30 PM
@Vi Joe wrote:
What's the best way to convert a string into an array of characters?
Define "array of characters", it is ambiguous.
If you mean an array of U8 numerics, go with "string to byte array" as mentioned above.
If you want an array where each element is a single character string, you could do something like the following.

04-11-2012 06:00 PM
Type Cast Man would beat me up for saying this, so you didn't hear this from me: I benchmarked this process fairly heavily for the OpenG folks and found that the simple String Subset method in a For Loop was the fastest.
04-11-2012 06:06 PM
OpenG has a VI which implements this functionality. You can download OpenG from here: https://lumen.ni.com/nicif/us/evaltlktopeng/content.xhtml
To see the discussion regarding the implementation of the "String to Character Array" you can click here: http://lavag.org/topic/14873-string-to-character-array-string-package/