LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split number from data string

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(2,255 Views)
Solution
Accepted by topic author VikramShetty_p

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


GCentral
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,251 Views)

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,201 Views)

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,175 Views)

you mean you just want to extract the numbers?

Message 5 of 7
(2,168 Views)

Hi,

 

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

 

Regards
Vikram kumar P

 

 

 

0 Kudos
Message 6 of 7
(2,155 Views)
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.
0 Kudos
Message 7 of 7
(2,022 Views)