LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter string and get some value from strin

Solved!
Go to solution

Hi!!! Alls

 

I have a string code, and I have nunbers and messages, I want filter from string because I need graph the values

 

please help me!!

 

 

Thanks

0 Kudos
Message 1 of 5
(2,775 Views)

You really need to provide some information.  All you have told us is that you have something and want to turn it into something else.  I don't know what "filter from string" is supposed to mean.

 

Show an example of the kind of data you have now, and what kind of result you want to get from it.  Then it would be possible to help you.  Otherwise we can only some wild @$$ guess.

 

 

 

Message 2 of 5
(2,762 Views)

ass.jpgwild @$$      ?

Message 3 of 5
(2,754 Views)
Solution
Accepted by topic author automatizate

Hello, 

 

If you have a string from which you want to get some numeric data, you can use some functions from the String Palette. For example, if you know the exact location of the numerica data in the string, you can use the String Subset function (you only have to specify the character in which we will start the search and the amount of characters to read). Once you have the string, you can use the Scan from string function, which lets you format the string into a numeric value which you can graph. I attach the image of the functions. 

 

funciones_string.PNG

You can find them in the String Palette in the block diagram. If you want to know how they work, you can use help, by pressing Ctrl+H and moving the mouse over the functions. 

 

I hope this is useful, 

 

Regards, 

José Alberto G.
National Instruments
ELP Support Engineer
www.ni.com/soporte
Message 4 of 5
(2,712 Views)

apok

 

lol.Smiley LOL

 

Didn't expect this image.

0 Kudos
Message 5 of 5
(2,697 Views)