04-11-2013 08:08 PM - edited 04-11-2013 08:10 PM
Question, I have a string I need to scan into separate string variables. The scan from string errors out if the string being parsed can't fill each type defined in the string format. The problem I have is the string length varies with multiple strings separated with spaces up to 13 different string types sometimes and sometimes only 6. Is there a different way to scan the string into different strings with the token command or something and not use this since format varies?
I attached an example of what I'm trying to do.
Thanks.
Solved! Go to Solution.
04-11-2013 09:18 PM
We need more information: How do you know how many variables are there? What should the results be for the two samples of input strings in your VI?
Are all the variables separated by spaces or some other delimiter? Do you have control over the format of the incoming strings?
Lynn
04-11-2013 09:25 PM - edited 04-11-2013 09:28 PM
I would use "spreadsheed string to array" with a type of 1D string array, format %s, and a space as delimiter. See how far you get.
04-11-2013 10:18 PM
Great. Could you resend the example in V11 or lower 😃
Thanks.
04-11-2013 10:37 PM
here you go....
04-11-2013 10:42 PM
Perfect Thanks...