From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,064 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
(3,060 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
(3,010 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,984 Views)

you mean you just want to extract the numbers?

Message 5 of 7
(2,977 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,964 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,831 Views)