LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to extract the time from a string with a lot of informations?

Solved!
Go to solution

Well guys,

 

I have a question here...

 

I need to extract only the TIME in a string. But that string has a lot of information

like some text "Identification" the data and the time...

 

This "Identification" can be only characteres or numbers or 2 or 3 words....

 

Anyone know a good way to make that?

 

I tryed that:

imagem do codigo.JPG

But only works if "Identification" is only 1 word....

 

I'm using LabVIEW 7.1

and the format is: Identification - 14-04-2010 - 13:32:25

 

Thanks

0 Kudos
Message 1 of 7
(3,281 Views)
Solution
Accepted by topic author EduU

Is Match Regular Expression available in 7.1?

 

Example_VI_BD.png


Match pattern works, too.
Example_VI.png

Message Edited by jcarmody on 04-14-2010 12:51 PM
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 2 of 7
(3,274 Views)

Since the time is always the last element and you know the exact number of characters you can try this

String Subset.jpg

Rodrigo Cuenca
www.cidesi.com

Message 3 of 7
(3,270 Views)

This should work.

 

 Example_VI_BD.png

Tim
GHSP
Message 4 of 7
(3,268 Views)

Thanks guys, this works =D

 

\o/

Message Edited by EduU on 04-14-2010 11:53 AM
0 Kudos
Message 5 of 7
(3,262 Views)

And I know this doesn't answer your question, but for future reference, scan from string is expandable. You can also double click the scanfromstring VI to configure it via a dialog.

 

Message Edited by for(imstuck) on 04-14-2010 12:00 PM
0 Kudos
Message 6 of 7
(3,254 Views)

Yes mate, I discovered it few minutes ago haha

Thanks =D

0 Kudos
Message 7 of 7
(3,240 Views)