Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Numbers from file

Status
Not open for further replies.

mqamar

Electrical
Jul 13, 2005
8
Hi, i collected Data from a meter and saved it as a *.txt file. Now, when i try to plot that data, i use the read character from function and connect it to extract numbers vi in the string library in the general folder. However, i am having trouble plotting data with the E (exponential). Ex. 1.23e-05 is out put as 2 separate numbers, 1.23 and -5, this is think is due to the "regular expression" of the MATCH PATTERN function in the extract numbers.vi .. So if anyone knows anything about how to edit this regular expression so that the exponential function isnt broken, please help me out, any resources in this regard will be helpful too. THANKS!
 
Replies continue below

Recommended for you

You might try one of two things: 1) use a "Read From Spreadsheet File" vi to try to read in your data file in numerical form or 2) use the "Fract/Exp String to Number" vi to convert the exponential string to number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor