LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan string

Solved!
Go to solution
Solution
Accepted by topic author *E*

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 11 of 30
(1,529 Views)

Or, if you didn't really mean that they were numbers...

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 12 of 30
(1,527 Views)

Thanks jcarmody this seems to work!

Thanks everyone for yall input also!

0 Kudos
Message 13 of 30
(1,521 Views)

One last question

 

04,05,08,,,,,,2.5,1.3,2.1*E

If i only wanted to display the 2.5 which also will be updating/changing how would i alter what you post inorder to make this work? Also it may not always be in the same position at all times but it would always be after the whole numbers. for example

 

 

08,,2.5,1.3,2.1*E

0 Kudos
Message 14 of 30
(1,508 Views)

One function will do it.

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 15 of 30
(1,496 Views)

Thank you very much!

0 Kudos
Message 16 of 30
(1,489 Views)

sorry I thought this was finished but a new issue came up I can not fix.

 

The example below the 2.5,1.3,2.1 will always come after the whole number.

The numbers before will be randomly generated and a double comma may come before the end of the whole numbers.

Sorry for the confusion but I didn't notice this case until after running the program several times

example

 

04,05,08,,10,11,,2.5,1.3,2.1*E

 

need to extract

04

05

08

10

11

 

I was able to get 04,05,08 with your first example by searching for the first     2 commas.

but as these numbers were randomly generated not all the time the first 2 commas are the end of the the array  of numbers I was trying to get.

 

here is another example

 

04,05,08,,,,,11,15,18,2.5,1.3,2.1*E

 

Need to extract

04

05

08

11

15

18

0 Kudos
Message 17 of 30
(1,476 Views)

I used a Match Regular Expression to find the first fractional number because I can't count on the ",," any more.

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 18 of 30
(1,452 Views)

Thanks jcarmody you have been really helpful.

Appreciate it!

0 Kudos
Message 19 of 30
(1,444 Views)

You're welcome.  Do you understand everything?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 20 of 30
(1,436 Views)