LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

in-coming string to numeric indicator

Solved!
Go to solution

I am getting read values as string in following format 

\s\s\s\s\s\s\s\s\s0

\s\s\s\s\s\s1000

\s\s\s\s\s75000

-\s\s\s\s\s1000

how can i format them to numeric and show them in numeric indicator(I32) like

0

1000

75000

-1000

etc 

Read characters are always 10 in number and i want them to display as signed numeric 

Thanks and regards 

 

0 Kudos
Message 1 of 6
(2,742 Views)

HI

 

Check the attached VI.

I hope this helps.

0 Kudos
Message 2 of 6
(2,717 Views)
Solution
Accepted by topic author rajxabc

Hi rajxabc

 

please check whether this meets your requirement.

______________________________________________
Kudos are welcome
Message 3 of 6
(2,711 Views)

@LV_user1 wrote:

HI

 

Check the attached VI.

I hope this helps.


woahhhh way too confusing 😉 Try this. If they are in one string, you will have to use my method. If those are each separate strings in your example Gogineni's solution works. But, you can change the numeric type to an I32, keep the %f, and then there is no need for the coerce to I32

 


0 Kudos
Message 4 of 6
(2,709 Views)

Thank You Gogineni, it works perfect.

Thanks  

0 Kudos
Message 5 of 6
(2,695 Views)

Hi rajxabc, 

 

All the best

______________________________________________
Kudos are welcome
0 Kudos
Message 6 of 6
(2,690 Views)