06-02-2009 03:11 PM
How would I go about creating a regular expression in LabVIEW that, say, takes an input of a list of numbers (1, 2, 3, 4, 5) and turns it into an array with the elements [1, 2, 3, 4, 5]? If someone could show me example code, I would be quite grateful.
Thanks.
06-02-2009 03:17 PM
Hi dragon,
to convert the string "1,2,3,4,5" into an array you should use the "spreadsheet string to array" function with a separator of "," When you need an array of numbers instead of strings (you only wrote "elements") you use "decimal string to number"...
06-02-2009 03:32 PM
Spreadsheet String to Array should work for conversion to strings or numbers...