LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split the string????

Solved!
Go to solution

Thank you very much for your answer.

 

I have one sensor named hagisonic Stargazer And I want to read the output string.

And that string has ~^| 123 |-22.22|+223.|1234

I want to read the value after | sign.

 

Greetings,

Ankit.

0 Kudos
Message 11 of 19
(582 Views)
You've been given a couple of solutions. What is the problem with them? Show what you have tried.
0 Kudos
Message 12 of 19
(577 Views)

I guess he wants to get all numbers and their signs (-/+) and removing all other symbols (~ , ^ , | etc etc)

 

regards,

yan 

0 Kudos
Message 13 of 19
(573 Views)

Hi yan,

 

and where's the problem with all the solutions already provided?

Ankit gets all numbers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 19
(568 Views)

AnkitRamani wrote:I want to read the value after | sign.

Search/Split String will be your friend here.


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 15 of 19
(567 Views)

Perhaps a program to read and split different input strings, which is changing everytime.

 

regards,

Yan.

0 Kudos
Message 16 of 19
(558 Views)

Thank you very much for your reply.

 

I am getting the result form previous suggesting, but the thing is that I don't want to get the symbol in first reading that are

'' ~^ '', and if possible then I want to read the value not in Array form only but I want to read that in element form i.e.. Array to elements.

 

Here in attachment I have attached the example vi for same thing which I am doing.

But I think may be i will solve this problem by your suggesions.

 

Thank you verymuch for your help again.

Greetings,

Ankit. 

0 Kudos
Message 17 of 19
(552 Views)

@AnkitRamani wrote:
I am getting the result form previous suggesting, but the thing is that I don't want to get the symbol in first reading that are

'' ~^ '', and if possible then I want to read the value not in Array form only but I want to read that in element form i.e.. Array to elements.


Sounds like my Scan From String method is what you really want then.


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
0 Kudos
Message 18 of 19
(541 Views)

Hi Ankit,

 


I want to read that in element form i.e.. Array to elements


 

You have been shown to use the IndexArray function. What's the problem with our suggestions?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 19
(517 Views)