LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

Split number from data string

I have user inputs like J1.A1 to J1.A20 I want to get the range from the given text 1 to 20,

Kindly share me the logic

Regards

Vikram Kumar P

Message 1 of 7
(2,366 Views)
Solution
Accepted by VikramShetty_p

Re: Split number from data string

I would use the Scan From String with the format set to "J1.A%d".  You will get the numeric value as an output.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 7
(2,362 Views)

Re: Split number from data string

What is it that you are trying to do as a whole?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 7
(2,312 Views)

Re: Split number from data string

I dont understand what is your exact requirement. But I can observe some informations from your post. I made a code snippet (Code made totally in an assumption) with that information. Check out the attached VI and reply.

Message 4 of 7
(2,286 Views)

Re: Split number from data string

you mean you just want to extract the numbers?

Message 5 of 7
(2,279 Views)

Re: Split number from data string

Hi,

Thanks to all i got the solution by using scan from string %[a-z,A-Z]%d

Regards
Vikram kumar P

Message 6 of 7
(2,266 Views)

Re: Split number from data string

What do you mean library? There is documentation on how the scan from string function works, and the codes to use for defining its operation. What more do you want/need?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 7 of 7
(2,133 Views)