07-10-2012 09:27 AM
i have string like #456,123 and want to select (4)[as the second digit not more] to add it with other no.
what shall i do?
Solved! Go to Solution.
07-10-2012 09:29 AM
This is an extremely basic task for LabVIEW.
Have you even gone through the tutorials????
07-10-2012 09:39 AM
how i can do it
07-10-2012 09:46 AM
Do what? What do you mean by "add it with the other no"? Do you mean you want to mathematically add the 4 and the 5 to get 9 or perform string concatenation to get '45'? Do you want to add the 4 and the 56,123?
To select a subset of a string you can use the String Subset function. There is a zero based index input and a length. Index 0 would be the # and index 1 is the 4. There is also a length input which defaults to the rest of the string. Wire a 1 to that.
07-10-2012 09:49 AM
You a regular expression. The expression "#(\d)" would isolate the first digit after the pound sign.