LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan String for Tokens ignores allow Empty Tokens on PDA

I was using the Scan String for Tokens VI in my application to parse a comma-delimited input string. This string sometimes has consecutive commas, indicating null values. In Windows, my usage worked fine, outputting "a", "b", "", and "c" for the input "a,b,,c".

When I loaded the same VI on the PDA, it returned "a", "b", "c", even though "allow empty tokens?" was set to true.

I worked around the problem using the Search/Split String VI instead, but I thought I'd let people know.
Message 1 of 3
(4,973 Views)
Also explore the Spreadsheet String to Array function. This function
converts a string to array, and seems to do what you want. The performance
of this function is very high compared to any routine you write yourself.

Nonetheless, it sounds like you've found a bug.

Regards,

Wiebe.


0 Kudos
Message 2 of 3
(4,817 Views)
This was reported to R&D (CAR# 67075) for further investigation.
0 Kudos
Message 3 of 3
(4,008 Views)