LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing string

Hi,
 
I'm tring to read between strings in multi-line text file. ex) This is example 4564, this is (      ) and (     ) and....
I'd like to just read what's in the parenthesis which is a variable numer and will be always placed inbetween those strings.
I tried key redy, scan from strings, but none worked. Can someone please help me with some example vi?
 
Thank you~
0 Kudos
Message 1 of 6
(3,566 Views)
Take a look at the shipped example called Extract Numbers to give an idea
 
 
David

Message Edited by David Crawford on 01-13-2007 10:42 AM

Message 2 of 6
(3,562 Views)
Hi tgif,
      I added a "Scan From String" function to the example David suggested.  Scan From String is another handy tool for parsing strings. Smiley Happy
 
Cheers.
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 3 of 6
(3,552 Views)

Thanks Tbd and David.

I'm still a bit confused about scan from string but David's suggestion does exactly what I needed.

Thank you very much~

0 Kudos
Message 4 of 6
(3,537 Views)

Hi,

I got the absolute time for x-axis but how can I read the amplitude of the plot that mouse is clicking when x-axis is in absolute time? I need some ideas...

Attached is the annotation that I used to get the amplitude when I click the plot when x-axis is in floating point.

I really appreciate for any help.

Thank you,

 

 

0 Kudos
Message 5 of 6
(3,498 Views)
tgif,

Here are a few things to consider that may give you better results when posting to the discussion forums:

1) If you have a second question that is unrelated to the first question, create a new thread or search for an existing thread on the new topic.  Your latest question is unrelated from the first question so people browsing the forums will not know about your current question based on this thread's title.

2) In addition to posting a screenshot, post the actual code, with the problem presented in as simple form as possible -- this way someone can try running the code that isn't working or possibly modify it.

I don't clearly understand what you are trying to do, could you elaborate? It sounds like you are trying to get the X axis value of the cursor position or something similar? Please post code and elaborate further.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 6 of 6
(3,481 Views)