LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do extract number from text file consist word and exponential number and arrange into array

I am new in Labview.Try to extract number from text file consist word and exponential number and arrange into array. I used extract number but in came out just number wihtout any exponenatil can anyone help me this. thank you
0 Kudos
Message 1 of 4
(3,350 Views)
Teh wrote in news:506500000008000000DFB00000-
1068850981000@exchange.ni.com:

> I am new in Labview.Try to extract number from text file consist word
> and exponential number and arrange into array. I used extract number
> but in came out just number wihtout any exponenatil can anyone help me
> this. thank you
> --3907502.1070123814333.JavaMail.quiq.tekken
> "CView Export Data File: Version 1.1"
> "Export From File: a:\19-8xm~1\3.9mg"
> "Converted from EG&G PAR 352/342 format."
> "Date: 08-21-2003 Time: 08:32:21"
> ""
> ""
> "Pt. Time (Sec) Q (Coulombs)"
> 1, 1.800000E+0000, 0.000000E+0000
> 2, 3.600000E+0000, -9.233999E-0005
> 3, 5.400000E+0000, -1.634400E-0004
> 4, 7.200000E+0000, -2.286000E-0004
> 5, 9.000000E+0000, -2.901600E-000
4
> 6, 1.080000E+0001, -3.492899E-0004
> 7, 1.260000E+0001, -4.067099E-0004
> 8, 1.440000E+0001, -4.628699E-0004
> 9, 1.620000E+0001, -5.179499E-0004
> 10, 1.800000E+0001, -5.721300E-0004
> 11, 1.980000E+0001, -6.256799E-0004
> 12, 2.160000E+0001, -6.785999E-0004
> 13, 2.340000E+0001, -7.309799E-0004

I don't think you needed to give all of the file as an example, it was a
long post 😉

Check out these functions on the function palette. Theu will help with the
number conversion.

String->Spreadsheet String To Array
(use %f or %g as format string)

String->Fract/Exp String To Number

I hope this can give you some ideas, but if you need more help just ask.

Remember, when you want to display the numbers, right click on the
indicator and select "Format & Precision" to determine how you want to
display the number. Try Scientific or Engeenering Notation.

--
Rolf
0 Kudos
Message 3 of 4
(3,350 Views)

Hi can you help me regarding to extract number from text file example shown below. I want only the values on X, Y and Z in series like

U X.125 Y-.125 A0.M3..................................................................125,-125,0
T Q Z25..........................................................................................0,0,25
Z5 R T.,,,,,,,,,,,,,,,,,,,........................................................................0,0,5
Z-.5 F.............................................................................................0,0,-5

 

 

0 Kudos
Message 4 of 4
(2,773 Views)