Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Jul 13, 2005
Messages
8
Location
US
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!
 
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

Back
Top